1 |
commit: 623c029d762d84af78b897536357119470189abf |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 20 13:11:16 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 20 13:11:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=623c029d |
7 |
|
8 |
dev-python/networkx: make all dependencies optional |
9 |
|
10 |
- Make all dependencies as optional, in accordance to upstream |
11 |
https://github.com/networkx/networkx/commit/5b86d913117ee22d9522755d607b5c6256cd57b9 |
12 |
- Remove all USE flags, as those are just runtime optional deps |
13 |
- Remove examples USE flag, as those are installed unconditionally |
14 |
by build system |
15 |
- bump to EAPI=8 |
16 |
- test dependencies were selected as minimal as possible |
17 |
|
18 |
Bug: https://bugs.gentoo.org/809038 |
19 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
20 |
|
21 |
dev-python/networkx/networkx-2.6.3.ebuild | 40 +++++++++++++------------------ |
22 |
1 file changed, 17 insertions(+), 23 deletions(-) |
23 |
|
24 |
diff --git a/dev-python/networkx/networkx-2.6.3.ebuild b/dev-python/networkx/networkx-2.6.3.ebuild |
25 |
index 51a49fc1b85..d640dd46895 100644 |
26 |
--- a/dev-python/networkx/networkx-2.6.3.ebuild |
27 |
+++ b/dev-python/networkx/networkx-2.6.3.ebuild |
28 |
@@ -1,10 +1,10 @@ |
29 |
# Copyright 1999-2021 Gentoo Authors |
30 |
# Distributed under the terms of the GNU General Public License v2 |
31 |
|
32 |
-EAPI=7 |
33 |
+EAPI=8 |
34 |
|
35 |
PYTHON_COMPAT=( python3_{8..10} ) |
36 |
-inherit distutils-r1 virtualx |
37 |
+inherit distutils-r1 optfeature virtualx |
38 |
|
39 |
DESCRIPTION="Python tools to manipulate graphs and complex networks" |
40 |
HOMEPAGE="https://networkx.org/ https://github.com/networkx/networkx" |
41 |
@@ -13,32 +13,26 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
42 |
LICENSE="BSD" |
43 |
SLOT="0" |
44 |
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
45 |
-IUSE="examples extras xml yaml" |
46 |
- |
47 |
-RDEPEND=" |
48 |
- >=dev-python/matplotlib-3.3[${PYTHON_USEDEP}] |
49 |
- >=dev-python/numpy-1.19[${PYTHON_USEDEP}] |
50 |
- >=dev-python/pandas-1.1[${PYTHON_USEDEP}] |
51 |
- >=dev-python/scipy-1.6.2[${PYTHON_USEDEP}] |
52 |
- extras? ( |
53 |
- >=dev-python/pydot-1.4.1[${PYTHON_USEDEP}] |
54 |
- $(python_gen_cond_dep ' |
55 |
- >=dev-python/pygraphviz-1.7[${PYTHON_USEDEP}] |
56 |
- >=sci-libs/gdal-1.10.0[python,${PYTHON_USEDEP}] |
57 |
- ' python3_{8..9}) |
58 |
+ |
59 |
+BDEPEND=" |
60 |
+ test? ( |
61 |
+ >=dev-python/lxml-4.5[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/numpy-1.19[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/pyyaml-3.13[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/scipy-1.6.2[${PYTHON_USEDEP}] |
65 |
) |
66 |
- xml? ( >=dev-python/lxml-4.5[${PYTHON_USEDEP}] ) |
67 |
- yaml? ( >=dev-python/pyyaml-3.13[${PYTHON_USEDEP}] )" |
68 |
+" |
69 |
|
70 |
distutils_enable_tests pytest |
71 |
|
72 |
python_test() { |
73 |
- local deselect=() |
74 |
- virtx epytest -p no:django ${deselect[@]/#/--deselect } |
75 |
+ virtx epytest -p no:django |
76 |
} |
77 |
|
78 |
-python_install_all() { |
79 |
- use examples && dodoc -r examples |
80 |
- |
81 |
- distutils-r1_python_install_all |
82 |
+pkg_postinst() { |
83 |
+ optfeature "recommended dependencies" "dev-python/matplotlib dev-python/numpy dev-python/pandas dev-python/scipy" |
84 |
+ optfeature "graph drawing and graph layout algorithms" "dev-python/pygraphviz dev-python/pydot" |
85 |
+ optfeature "YAML format reading and writing" "dev-python/pyyaml" |
86 |
+ optfeature "shapefile format reading and writing" "dev-python/gdal" |
87 |
+ optfeature "GraphML XML format" "dev-python/lxml" |
88 |
} |