1 |
commit: 0604c9a10a3bf768a700110ba8b2193b1354e159 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 11 16:49:46 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 11 17:54:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0604c9a1 |
7 |
|
8 |
dev-python/colorama: EAPI 8, PEP517 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/colorama/colorama-0.4.4-r1.ebuild | 48 ++++++++++++++++++++++++++++ |
13 |
1 file changed, 48 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/colorama/colorama-0.4.4-r1.ebuild b/dev-python/colorama/colorama-0.4.4-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..081e4bc98702 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/colorama/colorama-0.4.4-r1.ebuild |
20 |
@@ -0,0 +1,48 @@ |
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=( pypy3 python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="ANSI escape character sequences for colored terminal text & cursor positioning" |
32 |
+HOMEPAGE=" |
33 |
+ https://pypi.org/project/colorama/ |
34 |
+ https://github.com/tartley/colorama/ |
35 |
+" |
36 |
+# https://github.com/tartley/colorama/pull/183 |
37 |
+SRC_URI="https://github.com/tartley/${PN}/archive/${PV}.tar.gz -> ${P}.github.tar.gz" |
38 |
+ |
39 |
+LICENSE="BSD" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
42 |
+IUSE="examples test" |
43 |
+RESTRICT="!test? ( test )" |
44 |
+ |
45 |
+BDEPEND=" |
46 |
+ test? ( |
47 |
+ dev-python/mock[${PYTHON_USEDEP}] |
48 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
49 |
+ ) |
50 |
+" |
51 |
+ |
52 |
+python_install_all() { |
53 |
+ distutils-r1_python_install_all |
54 |
+ |
55 |
+ if use examples; then |
56 |
+ docinto examples |
57 |
+ dodoc -r demos/. |
58 |
+ docompress -x /usr/share/doc/${PF}/examples |
59 |
+ fi |
60 |
+} |
61 |
+ |
62 |
+python_test() { |
63 |
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
64 |
+ # Some tests require stdout to be a TTY |
65 |
+ # https://github.com/tartley/colorama/issues/169 |
66 |
+ script -eqc "${EPYTHON} -m pytest -vv -s" /dev/null \ |
67 |
+ || die "tests failed with ${EPYTHON}" |
68 |
+} |