1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
13 DESCRIPTION="Backport of Python 3's 'csv' module"
14 HOMEPAGE="https://github.com/ryanhiebert/backports.csv https://pypi.org/project/backports.csv/"
15 SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
19 KEYWORDS="~amd64 ~x86"
21 RESTRICT="!test? ( test )"
23 RDEPEND="dev-python/backports[${PYTHON_USEDEP}]"
24 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
30 "${EPYTHON}" tests.py -v || die "Tests fail with ${EPYTHON}"
33 python_install_all() {
34 distutils-r1_python_install_all
35 find "${ED}" -name '*.pth' -delete || die