1 |
commit: 6e7277d36fdbd6bb66f814c897ce7506935671ac |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 8 09:17:20 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 8 09:18:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e7277d3 |
7 |
|
8 |
dev-python/humanfriendly: enable py3.11 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
.../humanfriendly/humanfriendly-10.0-r1.ebuild | 39 ++++++++++++++++++++++ |
13 |
1 file changed, 39 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/humanfriendly/humanfriendly-10.0-r1.ebuild b/dev-python/humanfriendly/humanfriendly-10.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..c39fcb139268 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/humanfriendly/humanfriendly-10.0-r1.ebuild |
20 |
@@ -0,0 +1,39 @@ |
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=( pypy3 python3_{8..11} ) |
27 |
+PYTHON_REQ_USE="threads(+)" |
28 |
+DISTUTILS_USE_PEP517=setuptools |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Human friendly output for text interfaces using Python" |
32 |
+HOMEPAGE="https://pypi.org/project/humanfriendly/ |
33 |
+ https://github.com/xolox/python-humanfriendly/ |
34 |
+ https://humanfriendly.readthedocs.io/" |
35 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
36 |
+ |
37 |
+SLOT="0" |
38 |
+LICENSE="MIT" |
39 |
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" |
40 |
+ |
41 |
+# This is completely broken |
42 |
+# AttributeError: module 'humanfriendly.tests' has no attribute 'connect' |
43 |
+RESTRICT="test" |
44 |
+ |
45 |
+BDEPEND=" |
46 |
+ test? ( |
47 |
+ dev-python/capturer[${PYTHON_USEDEP}] |
48 |
+ >=dev-python/coloredlogs-15.0.1[${PYTHON_USEDEP}] |
49 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
50 |
+ dev-python/mock[${PYTHON_USEDEP}] |
51 |
+ ) |
52 |
+" |
53 |
+ |
54 |
+distutils_enable_tests pytest |
55 |
+distutils_enable_sphinx docs |
56 |
+ |
57 |
+python_test() { |
58 |
+ epytest humanfriendly/tests.py |
59 |
+} |