1 # Copyright 2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 )
9 DESCRIPTION="Python 2/3 unicode CSV compatibility layer"
11 https://pypi.org/project/csv23/
12 https://github.com/xflr6/csv23/"
13 SRC_URI="https://github.com/xflr6/csv23/archive/v${PV}.tar.gz -> ${P}.tar.gz"
17 KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
19 # note: upstream really uses mock at runtime
21 $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2)"
24 >=dev-python/pytest-4.6[${PYTHON_USEDEP}]
25 dev-python/pytest-mock[${PYTHON_USEDEP}] )"
27 distutils_enable_tests pytest
30 sed -i -e '/--cov/d' setup.cfg || die
31 distutils-r1_src_prepare