summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2021-08-25 08:27:24 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2021-08-25 08:29:06 +0300
commit68819ad6c0d437e7818728feca3332745a433687 (patch)
tree243159fd75362e89296bbda98488a409c135f017 /dev-python/PyContracts
parentdev-python/PyContracts: enable py3.10, add test dep on numpy (diff)
downloadgentoo-68819ad6c0d437e7818728feca3332745a433687.tar.gz
gentoo-68819ad6c0d437e7818728feca3332745a433687.tar.bz2
gentoo-68819ad6c0d437e7818728feca3332745a433687.zip
dev-python/PyContracts: add opt dep on numpy
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/PyContracts')
-rw-r--r--dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild b/dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild
index f94e9113dd4d..a4dec70c9ec2 100644
--- a/dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild
+++ b/dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=7
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/"
@@ -33,3 +33,7 @@ PATCHES=(
)
distutils_enable_tests nose
+
+pkg_postinst() {
+ optfeature "constraints on numpy arrays" dev-python/numpy
+}