1 |
commit: dbcdd928eac73ab6ad5255669cf1fe5b0cc6d704 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 1 09:40:00 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 1 10:55:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbcdd928 |
7 |
|
8 |
dev-python/dictdiffer: pep517, enable py3.11 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
dev-python/dictdiffer/dictdiffer-0.9.0-r1.ebuild | 40 ++++++++++++++++++++++++ |
13 |
1 file changed, 40 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/dictdiffer/dictdiffer-0.9.0-r1.ebuild b/dev-python/dictdiffer/dictdiffer-0.9.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..05b79b7c3c39 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/dictdiffer/dictdiffer-0.9.0-r1.ebuild |
20 |
@@ -0,0 +1,40 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python3_{8..11} ) |
27 |
+DISTUTILS_USE_PEP517=setuptools |
28 |
+inherit distutils-r1 |
29 |
+ |
30 |
+DESCRIPTION="Dictdiffer is a library that helps you to diff and patch dictionaries" |
31 |
+HOMEPAGE=" |
32 |
+ https://github.com/inveniosoftware/dictdiffer/ |
33 |
+ https://pypi.org/project/dictdiffer/ |
34 |
+" |
35 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="MIT" |
38 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
39 |
+SLOT="0" |
40 |
+ |
41 |
+BDEPEND=" |
42 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
43 |
+ test? ( |
44 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
45 |
+ ) |
46 |
+" |
47 |
+ |
48 |
+distutils_enable_tests pytest |
49 |
+# Requires self to be already installed |
50 |
+#distutils_enable_sphinx docs dev-python/sphinx_rtd_theme |
51 |
+ |
52 |
+python_prepare_all() { |
53 |
+ # remove dep on pytest-runner |
54 |
+ sed -i -e '/pytest-runner/d' setup.py || die |
55 |
+ |
56 |
+ # remove dep on pytest-pep8 and pytest-cov |
57 |
+ sed -i -e '/addopts/d' pytest.ini || die |
58 |
+ |
59 |
+ distutils-r1_python_prepare_all |
60 |
+} |