1 |
commit: 471f9ac3e48665c83497fe03731b3106e9246a81 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 17:57:14 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 17:59:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=471f9ac3 |
7 |
|
8 |
dev-python/iminuit: Migrate to PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/iminuit/iminuit-2.9.0-r1.ebuild | 41 ++++++++++++++++++++++++++++++ |
13 |
1 file changed, 41 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/iminuit/iminuit-2.9.0-r1.ebuild b/dev-python/iminuit/iminuit-2.9.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..3a700725da54 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/iminuit/iminuit-2.9.0-r1.ebuild |
20 |
@@ -0,0 +1,41 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+ |
29 |
+# forced implicitly |
30 |
+CMAKE_MAKEFILE_GENERATOR=emake |
31 |
+inherit cmake distutils-r1 virtualx |
32 |
+ |
33 |
+DESCRIPTION="Minuit numerical function minimization in Python" |
34 |
+HOMEPAGE="https://github.com/scikit-hep/iminuit/" |
35 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
36 |
+ |
37 |
+SLOT="0" |
38 |
+LICENSE="MIT LGPL-2.1" |
39 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
43 |
+" |
44 |
+BDEPEND=" |
45 |
+ dev-python/cython[${PYTHON_USEDEP}] |
46 |
+ test? ( |
47 |
+ dev-python/ipython[${PYTHON_USEDEP}] |
48 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
49 |
+ dev-python/scipy[${PYTHON_USEDEP}] |
50 |
+ ) |
51 |
+" |
52 |
+ |
53 |
+distutils_enable_tests pytest |
54 |
+ |
55 |
+src_test() { |
56 |
+ virtx distutils-r1_src_test |
57 |
+} |
58 |
+ |
59 |
+python_test() { |
60 |
+ epytest -p no:pytest-describe || die "Tests failed with ${EPYTHON}" |
61 |
+} |