diff options
| author | Michał Górny <mgorny@gentoo.org> | 2020-05-28 20:34:15 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2020-05-28 20:35:29 +0200 |
| commit | 8d88a7f11aa04f46016a53cb9889a611929224cb (patch) | |
| tree | 3dc6086aaf46786ba1f1b2104d07f8ee2edaad35 /dev-python/csv23/csv23-0.3.2.ebuild | |
| parent | 41fca3b9f6fca3210cb8241009b84ea344ceb489 (diff) | |
| download | gentoo-8d88a7f11aa04f46016a53cb9889a611929224cb.tar.gz gentoo-8d88a7f11aa04f46016a53cb9889a611929224cb.tar.bz2 gentoo-8d88a7f11aa04f46016a53cb9889a611929224cb.zip | |
dev-python/csv23: Bump to 0.3.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/csv23/csv23-0.3.2.ebuild')
| -rw-r--r-- | dev-python/csv23/csv23-0.3.2.ebuild | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-python/csv23/csv23-0.3.2.ebuild b/dev-python/csv23/csv23-0.3.2.ebuild new file mode 100644 index 000000000000..afd6b765ddd2 --- /dev/null +++ b/dev-python/csv23/csv23-0.3.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 ) +inherit distutils-r1 + +DESCRIPTION="Python 2/3 unicode CSV compatibility layer" +HOMEPAGE=" + https://pypi.org/project/csv23/ + https://github.com/xflr6/csv23/" +SRC_URI="https://github.com/xflr6/csv23/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# note: upstream really uses mock at runtime +RDEPEND=" + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2)" +BDEPEND=" + test? ( + >=dev-python/pytest-4.6[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/--cov/d' setup.cfg || die + distutils-r1_src_prepare +} |
