1 |
commit: 5bc065e3947b195203d5e1dc10764e91541ae8f4 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 31 13:05:24 2020 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 31 13:08:17 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bc065e3 |
7 |
|
8 |
dev-python/blessed: bump to 1.17.9, add Python 3.9 support |
9 |
|
10 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
11 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
12 |
|
13 |
dev-python/blessed/Manifest | 1 + |
14 |
dev-python/blessed/blessed-1.17.9.ebuild | 50 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 51 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/blessed/Manifest b/dev-python/blessed/Manifest |
18 |
index 18a3f4492a9..eaf41cc7a2d 100644 |
19 |
--- a/dev-python/blessed/Manifest |
20 |
+++ b/dev-python/blessed/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST blessed-1.17.8.tar.gz 6697594 BLAKE2B be279f1962e8643fdd2f03c63292700ebcdd89f29163f72de89d649990663e9677391a134e19e97fc51c64341f2efc9dbb8a13a467f864c04341a55fe31a87c1 SHA512 fbdeea8159f535824600bd4e9b080998d0a8336731c1d53ff5b89c7488363d35b87752b8e424317f64f2b90aec3c62ce3368503b1a864a67c1de48245dc2fbbf |
23 |
+DIST blessed-1.17.9.tar.gz 6648453 BLAKE2B 75de7585de7712cb4314ca22fd30ea811e446e1373ccd9a8750526e9fd0b5ea31d4bd0cedbcb35f7814bda32c75f8d58141beb32f131cc8fcfa127e89c255c25 SHA512 0ead3e3a4b96213acb2834fa8a0d8f0c590027a1d3bd49253ea58af9da55fd687beea6b5dfe3a8f7e6f9868967e24e468abcbe260a3cd55018f32d7b81a58d6c |
24 |
|
25 |
diff --git a/dev-python/blessed/blessed-1.17.9.ebuild b/dev-python/blessed/blessed-1.17.9.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..e810dfdd33a |
28 |
--- /dev/null |
29 |
+++ b/dev-python/blessed/blessed-1.17.9.ebuild |
30 |
@@ -0,0 +1,50 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( pypy3 python3_{6,7,8,9} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Library for making terminal apps using colors, keyboard input and positioning" |
41 |
+HOMEPAGE="https://github.com/jquast/blessed" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+SLOT="0" |
45 |
+LICENSE="MIT" |
46 |
+KEYWORDS="~amd64" |
47 |
+IUSE="test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-python/six[${PYTHON_USEDEP}] |
52 |
+ dev-python/wcwidth[${PYTHON_USEDEP}] |
53 |
+" |
54 |
+BDEPEND=" |
55 |
+ test? ( |
56 |
+ ${RDEPEND} |
57 |
+ dev-python/mock[${PYTHON_USEDEP}] |
58 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
59 |
+ ) |
60 |
+" |
61 |
+ |
62 |
+distutils_enable_sphinx docs dev-python/sphinx_rtd_theme |
63 |
+ |
64 |
+python_prepare_all() { |
65 |
+ # Skip those extensions as they don't have a Gentoo package |
66 |
+ # Remove calls to scripts that generate rst files because they |
67 |
+ # are not present in the tarball |
68 |
+ sed -e '/sphinxcontrib.manpage/d' -e '/sphinx_paramlinks/d' \ |
69 |
+ -e '/^for script in/,/runpy.run_path/d' \ |
70 |
+ -i docs/conf.py || die |
71 |
+ distutils-r1_python_prepare_all |
72 |
+} |
73 |
+ |
74 |
+python_test() { |
75 |
+ # COLORTERM must not be truecolor |
76 |
+ # See https://github.com/jquast/blessed/issues/162 |
77 |
+ # Ignore coverage options |
78 |
+ COLORTERM= pytest -vv --override-ini="addopts=" \ |
79 |
+ || die "tests failed with ${EPYTHON}" |
80 |
+} |