1 |
commit: 5daf1ff49aeb0df600d3c7baaeccb548a081615c |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 7 17:28:59 2020 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 7 17:56:30 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5daf1ff4 |
7 |
|
8 |
dev-python/blessings: Python 3.8 + QA fixes |
9 |
|
10 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.92, Repoman-2.3.20 |
12 |
|
13 |
dev-python/blessings/blessings-1.7-r1.ebuild | 42 ++++++++++++++++++++++++++++ |
14 |
1 file changed, 42 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/blessings/blessings-1.7-r1.ebuild b/dev-python/blessings/blessings-1.7-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..4d4244fee14 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/blessings/blessings-1.7-r1.ebuild |
21 |
@@ -0,0 +1,42 @@ |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+PYTHON_COMPAT=( pypy3 python3_{6,7,8} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="A thin, practical wrapper around terminal coloring, styling, and positioning" |
32 |
+HOMEPAGE="https://github.com/erikrose/blessings https://pypi.org/project/blessings/" |
33 |
+# https://github.com/erikrose/blessings/pull/136 |
34 |
+SRC_URI="https://github.com/erikrose/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+ |
36 |
+SLOT="0" |
37 |
+LICENSE="MIT" |
38 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
39 |
+IUSE="doc test" |
40 |
+RESTRICT="!test? ( test )" |
41 |
+ |
42 |
+RDEPEND="dev-python/six[${PYTHON_USEDEP}]" |
43 |
+BDEPEND=" |
44 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
45 |
+ test? ( |
46 |
+ ${RDEPEND} |
47 |
+ dev-python/nose[${PYTHON_USEDEP}] |
48 |
+ ) |
49 |
+" |
50 |
+ |
51 |
+python_compile_all() { |
52 |
+ if use doc; then |
53 |
+ sphinx-build docs/ docs/_build/html || die |
54 |
+ HTML_DOCS=( docs/_build/html/. ) |
55 |
+ fi |
56 |
+} |
57 |
+ |
58 |
+python_test() { |
59 |
+ # The tests need an interactive terminal |
60 |
+ # https://github.com/erikrose/blessings/issues/117 |
61 |
+ script -eqc "nosetests -v -w \"${BUILD_DIR}\"" /dev/null \ |
62 |
+ || die "tests failed with ${EPYTHON}" |
63 |
+} |