1 |
commit: 31f75efcb11aefe2502f36facf2f1c329b022233 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 22 06:05:25 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 22 06:05:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31f75efc |
7 |
|
8 |
dev-python/pyamg: add 4.2.1, fix tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/829783 |
11 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
12 |
|
13 |
dev-python/pyamg/Manifest | 1 + |
14 |
dev-python/pyamg/pyamg-4.2.1.ebuild | 38 +++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 39 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pyamg/Manifest b/dev-python/pyamg/Manifest |
18 |
index d4fd0a1ff161..e7e4e0cd9cec 100644 |
19 |
--- a/dev-python/pyamg/Manifest |
20 |
+++ b/dev-python/pyamg/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST pyamg-4.1.0.tar.gz 749906 BLAKE2B 31c05d64317b32cbdbd616e982557f0a94bc17b2fce3d982fe93e629d56ad526516603032b3cba9785bf5ebed038481ae641f55a5a1ad621442dde08791981cb SHA512 311642cbbe8dca621cb58bebb1bb05b7dc7b2364713886df96937ba56575137bcb4fb7006a232d2c14380cd41f4337f6f09a8a9794e279a155f27287497d2b08 |
23 |
DIST pyamg-4.2.0.gh.tar.gz 3900381 BLAKE2B df556553f74ebbc3b83d5a9479af25a54a4fd999edeadaeb0951893612abdb7c2aa79909f6eb4196322752ae87c5636e23c8c9b7dcdbb1f8d515651526e8aff4 SHA512 71e8e1937437888fec275e8522a30f9eb35cb79cc07d6da8032b653ed58e086285701ebb40dbe3b9fe82b53dc6e112e18cf62d42b18233326639417cf808b7c1 |
24 |
+DIST pyamg-4.2.1.gh.tar.gz 3900395 BLAKE2B ad4427eb297f044b4782274ce55799bd9da4abec108267c4c0aaedab38e2fb4d89c4c365eca90e4045c411254640ead667fa0e511d9597ff00081c0ebacde9b2 SHA512 933f5f1da808cb02ff5fa91df54a48a971bb3b017582f5a829cf71c94f698469476b9f0306962140dc38f7265266c9b53f98dc7aaa99945b45bfa83003d26df9 |
25 |
|
26 |
diff --git a/dev-python/pyamg/pyamg-4.2.1.ebuild b/dev-python/pyamg/pyamg-4.2.1.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..cdcc0310a2cb |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pyamg/pyamg-4.2.1.ebuild |
31 |
@@ -0,0 +1,38 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Algebraic multigrid solvers in Python" |
41 |
+HOMEPAGE="https://pyamg.org" |
42 |
+SRC_URI=" |
43 |
+ https://github.com/pyamg/pyamg/archive/v${PV}.tar.gz |
44 |
+ -> ${P}.gh.tar.gz |
45 |
+" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
53 |
+ dev-python/scipy[${PYTHON_USEDEP}]" |
54 |
+BDEPEND=" |
55 |
+ dev-python/pybind11[${PYTHON_USEDEP}] |
56 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
57 |
+ test? ( |
58 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
59 |
+ )" |
60 |
+ |
61 |
+distutils_enable_tests pytest |
62 |
+ |
63 |
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} |
64 |
+ |
65 |
+python_test() { |
66 |
+ cp -r -l -n pyamg "${BUILD_DIR}/lib" || die |
67 |
+ cd "${BUILD_DIR}/lib" || die |
68 |
+ epytest |
69 |
+} |