diff options
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 +} |