diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-08-26 00:09:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-08-26 00:09:36 +0100 |
commit | b1c81de4fadbd00897700a7321f03b390d952b2e (patch) | |
tree | e6cc812351d4f105c110cfc363ebb497e996f47a /dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild | |
parent | 7c59acba5699c9c58090a7a738669669a7307023 (diff) |
gentoo resync : 26.08.2021
Diffstat (limited to 'dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild')
-rw-r--r-- | dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild b/dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild index 4158f29912c4..92c510898e87 100644 --- a/dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild +++ b/dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild @@ -3,13 +3,12 @@ EAPI=7 -DISTUTILS_USE_SETUPTOOLS=bdepend -PYTHON_COMPAT=( python3_{7..9} pypy3 ) +PYTHON_COMPAT=( python3_{8..10} pypy3 ) -inherit distutils-r1 +inherit distutils-r1 optfeature DESCRIPTION="Declare constraints on function parameters and return values" -HOMEPAGE="https://andreacensi.github.com/contracts/ https://pypi.org/project/PyContracts/" +HOMEPAGE="https://andreacensi.github.io/contracts/ https://pypi.org/project/PyContracts/" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" SLOT="0" @@ -22,5 +21,19 @@ RDEPEND=" dev-python/pyparsing[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] " +BDEPEND=" + test? ( $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_USEDEP}] + ' 'python*' ) + ) +" + +PATCHES=( + "${FILESDIR}/${P}-fix-py3.10.patch" +) distutils_enable_tests nose + +pkg_postinst() { + optfeature "constraints on numpy arrays" dev-python/numpy +} |