Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/iminuit/
Date: Tue, 27 Sep 2022 18:25:38
Message-Id: 1664303125.4b54a4c5bef2502569c60d25852c12bb6a09aabe.arthurzam@gentoo
1 commit: 4b54a4c5bef2502569c60d25852c12bb6a09aabe
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 27 18:24:24 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 27 18:25:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b54a4c5
7
8 dev-python/iminuit: add 2.17.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/iminuit/Manifest | 1 +
13 dev-python/iminuit/iminuit-2.17.0.ebuild | 42 ++++++++++++++++++++++++++++++++
14 2 files changed, 43 insertions(+)
15
16 diff --git a/dev-python/iminuit/Manifest b/dev-python/iminuit/Manifest
17 index 0fdc191e9925..be94b64b7a3b 100644
18 --- a/dev-python/iminuit/Manifest
19 +++ b/dev-python/iminuit/Manifest
20 @@ -1 +1,2 @@
21 DIST iminuit-2.16.0.tar.gz 429960 BLAKE2B 39d5d52797f8f9749dc99b638039323c5eaedec9bd810f8f6b79f19c37e12d6c8d3c6acd4811b80a43828c9ca7b1a30ea71174cdd749d40f5b27cdfd1de193c6 SHA512 06a3906ff121c135ec3c882a5eb5d77a09b910cd2b81d4e6e635122a4544546b64fc6342936a8a963e84d89efca82552a0283908e100d26c25d4bbf7fca5735e
22 +DIST iminuit-2.17.0.tar.gz 431704 BLAKE2B 46bd5f108f42ba426f71cf7670a1936cbf1c24fd070ace653b9daf55c22a4012ac2e052a05a94ffb6873a42adb7a23509b22f25b0db576ca42e27eea51aca67a SHA512 c42c1a1630d6abf3232ec862c2064db74b7395a9f5ffa515157c74fe86dd4026dc985fa377d5355574fe2fe131432efe006a68b9883cb67c4fa31a3929071f0c
23
24 diff --git a/dev-python/iminuit/iminuit-2.17.0.ebuild b/dev-python/iminuit/iminuit-2.17.0.ebuild
25 new file mode 100644
26 index 000000000000..8f9a4ea554d7
27 --- /dev/null
28 +++ b/dev-python/iminuit/iminuit-2.17.0.ebuild
29 @@ -0,0 +1,42 @@
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 +# forced implicitly
39 +CMAKE_MAKEFILE_GENERATOR=emake
40 +inherit cmake distutils-r1 virtualx
41 +
42 +DESCRIPTION="Minuit numerical function minimization in Python"
43 +HOMEPAGE="https://github.com/scikit-hep/iminuit/"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +SLOT="0"
47 +LICENSE="MIT LGPL-2.1"
48 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
49 +
50 +RDEPEND="
51 + dev-python/numpy[${PYTHON_USEDEP}]
52 +"
53 +BDEPEND="
54 + dev-python/cython[${PYTHON_USEDEP}]
55 + test? (
56 + dev-python/ipython[${PYTHON_USEDEP}]
57 + dev-python/ipywidgets[${PYTHON_USEDEP}]
58 + dev-python/matplotlib[${PYTHON_USEDEP}]
59 + dev-python/scipy[${PYTHON_USEDEP}]
60 + )
61 +"
62 +
63 +distutils_enable_tests pytest
64 +
65 +src_test() {
66 + virtx distutils-r1_src_test
67 +}
68 +
69 +python_test() {
70 + epytest -p no:pytest-describe || die "Tests failed with ${EPYTHON}"
71 +}