1 |
commit: 5c13ebc5e503dac815d4be878c100740af7f7acd |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 27 18:42:26 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 27 18:42:26 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c13ebc5 |
7 |
|
8 |
dev-python/python-daemon: EAPI=8, PEP517 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
.../python-daemon/python-daemon-2.3.0-r2.ebuild | 43 ++++++++++++++++++++++ |
13 |
1 file changed, 43 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/python-daemon/python-daemon-2.3.0-r2.ebuild b/dev-python/python-daemon/python-daemon-2.3.0-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..e474e92e7326 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/python-daemon/python-daemon-2.3.0-r2.ebuild |
20 |
@@ -0,0 +1,43 @@ |
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} pypy3 ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Library to implement a well-behaved Unix daemon process" |
32 |
+HOMEPAGE="https://pypi.org/project/python-daemon/" |
33 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="PSF-2" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~arm ~x86" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ dev-python/lockfile[${PYTHON_USEDEP}] |
41 |
+" |
42 |
+ |
43 |
+BDEPEND=" |
44 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
45 |
+ dev-python/twine[${PYTHON_USEDEP}] |
46 |
+ test? ( |
47 |
+ dev-python/testtools[${PYTHON_USEDEP}] |
48 |
+ dev-python/testscenarios[${PYTHON_USEDEP}] |
49 |
+ ) |
50 |
+" |
51 |
+ |
52 |
+PATCHES=( |
53 |
+ "${FILESDIR}/${P}-fix-py3.10.patch" |
54 |
+) |
55 |
+ |
56 |
+distutils_enable_tests unittest |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ # fix for >=testtools-2.5.0 |
60 |
+ sed -e 's/testtools.helpers.safe_hasattr/hasattr/' \ |
61 |
+ -i test/test_metadata.py || die |
62 |
+ distutils-r1_src_prepare |
63 |
+} |