1 |
commit: cefed61928be263ecaae6bde58c90fbad138c1fe |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 2 06:50:15 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 2 07:37:21 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cefed619 |
7 |
|
8 |
dev-python/networkx: Bump to 2.8.8 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/networkx/Manifest | 1 + |
13 |
dev-python/networkx/networkx-2.8.8.ebuild | 65 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 66 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/networkx/Manifest b/dev-python/networkx/Manifest |
17 |
index e46ce9496981..0577d3c2eeee 100644 |
18 |
--- a/dev-python/networkx/Manifest |
19 |
+++ b/dev-python/networkx/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST networkx-2.8.6.tar.gz 1957238 BLAKE2B 70c5256440d94c1b0fa01f733ef46fc5da6846cf57891b344b6a82c27029b983827ecec9f1154d47771cff464b789bf84a9150111a0ecf1533ec83f1d41b718b SHA512 d56ab1a3007a914227f09969c9300b0582a640e5c3ad35b25400d8159ec35986a5e9bad5d7f86f1474b7293f495471fa3cd9f3b890a0d5287646338128d09d35 |
22 |
DIST networkx-2.8.7.tar.gz 1958634 BLAKE2B ca67cea6cd3c04868bf72a16efd211a3caec7819347a161f69433cea18aa987c0b8e15285a24e3aebdbbe7fb431b3a6748195a0049cb563a2ec6c5f2cdca5b15 SHA512 e525bf8a80ddb18607ac390475d9bf23dbcdaeda4bb277c428ce2aff8c0f62ea5adbf0c7746059b8145d6f38fcb32b581da48d9fa10536265ef3c78cf2751a59 |
23 |
+DIST networkx-2.8.8.tar.gz 1960828 BLAKE2B 074e902c2c31e0641fe651d2168c77e62af04b322485bf002f557a42c7a7c63d1391c32f9de95b9d5faf13f7eb9ece93171bb1fdba8548d59df5075ac72263e2 SHA512 c698ed2dcc4221662af585940cf5d6ce1ad97b6b8f6d84348ff1d6b233eb69a36f5fba362bc4bb3a08ec8716434690b52b1d66dc4122edb0f420eaa10023d9d4 |
24 |
|
25 |
diff --git a/dev-python/networkx/networkx-2.8.8.ebuild b/dev-python/networkx/networkx-2.8.8.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..96dd02e10e41 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/networkx/networkx-2.8.8.ebuild |
30 |
@@ -0,0 +1,65 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_FULLY_TESTED=( python3_{8..11} ) |
38 |
+PYTHON_COMPAT=( "${PYTHON_FULLY_TESTED[@]}" ) |
39 |
+ |
40 |
+inherit distutils-r1 optfeature multiprocessing virtualx |
41 |
+ |
42 |
+DESCRIPTION="Python tools to manipulate graphs and complex networks" |
43 |
+HOMEPAGE=" |
44 |
+ https://networkx.org/ |
45 |
+ https://github.com/networkx/networkx/ |
46 |
+ https://pypi.org/project/networkx/ |
47 |
+" |
48 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="BSD" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
53 |
+ |
54 |
+BDEPEND=" |
55 |
+ test? ( |
56 |
+ >=dev-python/lxml-4.5[${PYTHON_USEDEP}] |
57 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/pyyaml-3.13[${PYTHON_USEDEP}] |
59 |
+ $(python_gen_cond_dep ' |
60 |
+ >=dev-python/numpy-1.19[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/scipy-1.6.2[${PYTHON_USEDEP}] |
62 |
+ ' "${PYTHON_FULLY_TESTED[@]}") |
63 |
+ ) |
64 |
+" |
65 |
+ |
66 |
+distutils_enable_tests pytest |
67 |
+ |
68 |
+src_test() { |
69 |
+ virtx distutils-r1_src_test |
70 |
+} |
71 |
+ |
72 |
+python_test() { |
73 |
+ local EPYTEST_DESELECT=() |
74 |
+ if ! has_version "dev-python/scipy[${PYTHON_USEDEP}]"; then |
75 |
+ EPYTEST_DESELECT+=( |
76 |
+ networkx/drawing/tests/test_pylab.py::test_draw |
77 |
+ ) |
78 |
+ fi |
79 |
+ # virtx implies nonfatal |
80 |
+ nonfatal epytest -p no:django -n "$(makeopts_jobs)" || die |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ distutils-r1_src_install |
85 |
+ # those examples use various assets and pre-compressed files |
86 |
+ docompress -x /usr/share/doc/${PF}/examples |
87 |
+} |
88 |
+ |
89 |
+pkg_postinst() { |
90 |
+ optfeature "recommended dependencies" "dev-python/matplotlib dev-python/numpy dev-python/pandas dev-python/scipy" |
91 |
+ optfeature "graph drawing and graph layout algorithms" "dev-python/pygraphviz dev-python/pydot" |
92 |
+ optfeature "YAML format reading and writing" "dev-python/pyyaml" |
93 |
+ optfeature "shapefile format reading and writing" "dev-python/gdal" |
94 |
+ optfeature "GraphML XML format" "dev-python/lxml" |
95 |
+} |