1 |
commit: 046883e369a0d5f93ce35d57950d39c00280d1e1 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 19 05:38:26 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 19 07:14:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=046883e3 |
7 |
|
8 |
dev-python/networkx: Bump to 2.8.1 |
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.1.ebuild | 55 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 56 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/networkx/Manifest b/dev-python/networkx/Manifest |
17 |
index 6811d131b64c..3e6cc5259884 100644 |
18 |
--- a/dev-python/networkx/Manifest |
19 |
+++ b/dev-python/networkx/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
+DIST networkx-2.8.1.tar.gz 1945388 BLAKE2B 5c7ee6826f952d6f834d88ab0ba82d11d8a171611f43750d8d64ca6adf428fb64e8c37ca9c03654941c6d67eb8b68710e4e923f008c99d724ad47d42c31dc75d SHA512 a85b6be14aabb4f4d5317f65fca1d681d93bb6defdb81c4fe59b06e9632816adaa322ae7e8f2277a78290f0ac6260438b503c79d4cbb39fcd37562e8325d89d3 |
22 |
DIST networkx-2.8.tar.gz 1937426 BLAKE2B 5a094177ed480c6f7cbdacb6795fc4f2e0aec53ed89a33e19d78f47830d46238f35b7cd76098f6e00397f7cbdf305256910b7930cbb2c775ed4c2b18d9bd596f SHA512 72cd6637faa4228f6c802cf36935b5460fdf9b6cf191c3b375810bfc3732823e3286bdc1e6cbf7e6a7ffde83d0cf3bca157ae27ff98c537d43fdb4b8ef45ef4b |
23 |
|
24 |
diff --git a/dev-python/networkx/networkx-2.8.1.ebuild b/dev-python/networkx/networkx-2.8.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..a25ddcc29820 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/networkx/networkx-2.8.1.ebuild |
29 |
@@ -0,0 +1,55 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+ |
38 |
+inherit distutils-r1 optfeature virtualx |
39 |
+ |
40 |
+DESCRIPTION="Python tools to manipulate graphs and complex networks" |
41 |
+HOMEPAGE=" |
42 |
+ https://networkx.org/ |
43 |
+ https://github.com/networkx/networkx/ |
44 |
+ https://pypi.org/project/networkx/ |
45 |
+" |
46 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="BSD" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
51 |
+ |
52 |
+BDEPEND=" |
53 |
+ test? ( |
54 |
+ >=dev-python/lxml-4.5[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/numpy-1.19[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/pyyaml-3.13[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/scipy-1.6.2[${PYTHON_USEDEP}] |
58 |
+ ) |
59 |
+" |
60 |
+ |
61 |
+distutils_enable_tests pytest |
62 |
+ |
63 |
+src_test() { |
64 |
+ virtx distutils-r1_src_test |
65 |
+} |
66 |
+ |
67 |
+python_test() { |
68 |
+ # virtx implies nonfatal |
69 |
+ nonfatal epytest -p no:django || die |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ distutils-r1_src_install |
74 |
+ # those examples use various assets and pre-compressed files |
75 |
+ docompress -x /usr/share/doc/${PF}/examples |
76 |
+} |
77 |
+ |
78 |
+pkg_postinst() { |
79 |
+ optfeature "recommended dependencies" "dev-python/matplotlib dev-python/numpy dev-python/pandas dev-python/scipy" |
80 |
+ optfeature "graph drawing and graph layout algorithms" "dev-python/pygraphviz dev-python/pydot" |
81 |
+ optfeature "YAML format reading and writing" "dev-python/pyyaml" |
82 |
+ optfeature "shapefile format reading and writing" "dev-python/gdal" |
83 |
+ optfeature "GraphML XML format" "dev-python/lxml" |
84 |
+} |