From: Michał Górny Date: Thu, 30 Apr 2020 07:30:48 +0000 (+0200) Subject: dev-python/csv23: New dep of dev-python/pip X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6f67e67d20934e98c016054a99954991163fa4e7;p=gentoo.git dev-python/csv23: New dep of dev-python/pip Signed-off-by: Michał Górny --- diff --git a/dev-python/csv23/Manifest b/dev-python/csv23/Manifest new file mode 100644 index 000000000000..a39048ce7026 --- /dev/null +++ b/dev-python/csv23/Manifest @@ -0,0 +1 @@ +DIST csv23-0.3.zip 42230 BLAKE2B b0d008b7f40c395f3d838d0b0521734f0bcfc578b391ba2d03fd4719e05b68df8777587eedea05b429da40a79f323c0afbbde7586533a912466a49c989ff0039 SHA512 271758876149d846011b463d4ed541beee6a2c11d3867f92ae09a1a725b14f17cfbc19fa4a506c9dd52e6be23105664b7118068991e6f4679ce998790645691c diff --git a/dev-python/csv23/csv23-0.3.ebuild b/dev-python/csv23/csv23-0.3.ebuild new file mode 100644 index 000000000000..8e051adfab4f --- /dev/null +++ b/dev-python/csv23/csv23-0.3.ebuild @@ -0,0 +1,30 @@ +# 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}} ) +inherit distutils-r1 + +DESCRIPTION="Python 2/3 unicode CSV compatibility layer" +HOMEPAGE=" + https://pypi.org/project/csv23/ + https://github.com/xflr6/csv23/" +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.zip" + +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="app-arch/unzip + test? ( dev-python/pytest-mock[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/--cov/d' setup.cfg || die + distutils-r1_src_prepare +} diff --git a/dev-python/csv23/metadata.xml b/dev-python/csv23/metadata.xml new file mode 100644 index 000000000000..266e3f19ca59 --- /dev/null +++ b/dev-python/csv23/metadata.xml @@ -0,0 +1,7 @@ + + + + + python@gentoo.org + +