1 |
commit: 68819ad6c0d437e7818728feca3332745a433687 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 25 05:27:24 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 25 05:29:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68819ad6 |
7 |
|
8 |
dev-python/PyContracts: add opt dep on numpy |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild | 6 +++++- |
13 |
1 file changed, 5 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild b/dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild |
16 |
index f94e9113dd4..a4dec70c9ec 100644 |
17 |
--- a/dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild |
18 |
+++ b/dev-python/PyContracts/PyContracts-1.8.14-r1.ebuild |
19 |
@@ -5,7 +5,7 @@ EAPI=7 |
20 |
|
21 |
PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
22 |
|
23 |
-inherit distutils-r1 |
24 |
+inherit distutils-r1 optfeature |
25 |
|
26 |
DESCRIPTION="Declare constraints on function parameters and return values" |
27 |
HOMEPAGE="https://andreacensi.github.com/contracts/ https://pypi.org/project/PyContracts/" |
28 |
@@ -33,3 +33,7 @@ PATCHES=( |
29 |
) |
30 |
|
31 |
distutils_enable_tests nose |
32 |
+ |
33 |
+pkg_postinst() { |
34 |
+ optfeature "constraints on numpy arrays" dev-python/numpy |
35 |
+} |