commit: 68819ad6c0d437e7818728feca3332745a433687
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 25 05:27:24 2021 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 25 05:29:06 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68819ad6
dev-python/PyContracts: add opt dep on numpy
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild
b/dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild
index f94e9113dd4..a4dec70c9ec 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
+}