Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/blessed/
Date: Mon, 27 Apr 2020 18:35:22
Message-Id: 1588012484.95f29329f3bfd69a8190247f5da1fab77737f050.sbraz@gentoo
1 commit: 95f29329f3bfd69a8190247f5da1fab77737f050
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 27 17:17:43 2020 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 27 18:34:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95f29329
7
8 dev-python/blessed: new pkg, better and maintained fork of blessings
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
12
13 dev-python/blessed/Manifest | 1 +
14 dev-python/blessed/blessed-1.17.5.ebuild | 53 ++++++++++++++++++++++++++++++++
15 dev-python/blessed/metadata.xml | 13 ++++++++
16 3 files changed, 67 insertions(+)
17
18 diff --git a/dev-python/blessed/Manifest b/dev-python/blessed/Manifest
19 new file mode 100644
20 index 00000000000..16bfcda031f
21 --- /dev/null
22 +++ b/dev-python/blessed/Manifest
23 @@ -0,0 +1 @@
24 +DIST blessed-1.17.5.tar.gz 14030669 BLAKE2B e2692c6863599462914f1cee36bd487d42fb1e44e15f841d81ee622619da22a34cda4d78523b07bbd94a9a70e41c9b8342d0da650389d0fbe4ef7a46868535cc SHA512 5973070199d16a71d70c6b25b783a92d72f9dd8d27ca5cdb25b18e07e4b351e1cba751b96113665230c3c01bd1916adafe89d4689e2b341a88640535b7f91317
25
26 diff --git a/dev-python/blessed/blessed-1.17.5.ebuild b/dev-python/blessed/blessed-1.17.5.ebuild
27 new file mode 100644
28 index 00000000000..907f9aebfe7
29 --- /dev/null
30 +++ b/dev-python/blessed/blessed-1.17.5.ebuild
31 @@ -0,0 +1,53 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Library for making terminal apps using colors, keyboard input and positioning"
42 +HOMEPAGE="https://github.com/jquast/blessed"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +SLOT="0"
46 +LICENSE="MIT"
47 +KEYWORDS="~amd64"
48 +IUSE="test"
49 +RESTRICT="!test? ( test )"
50 +
51 +RDEPEND="
52 + dev-python/six[${PYTHON_USEDEP}]
53 + dev-python/wcwidth[${PYTHON_USEDEP}]
54 +"
55 +BDEPEND="
56 + test? (
57 + ${RDEPEND}
58 + dev-python/mock[${PYTHON_USEDEP}]
59 + dev-python/pytest[${PYTHON_USEDEP}]
60 + )
61 +"
62 +
63 +distutils_enable_sphinx docs
64 +
65 +python_prepare_all() {
66 + # Skip those extensions as they don't have a Gentoo package
67 + # Remove calls to scripts that generate rst files because they
68 + # are not present in the tarball
69 + sed -e '/sphinxcontrib.manpage/d' -e '/sphinx_paramlinks/d' \
70 + -e '/^for script in/,/runpy.run_path/d' \
71 + -i docs/conf.py || die
72 + distutils-r1_python_prepare_all
73 +}
74 +
75 +python_test() {
76 + # COLORTERM must not be truecolor
77 + # See https://github.com/jquast/blessed/issues/162
78 + # Ignore coverage options
79 + # Skip two failing tests
80 + COLORTERM= pytest -vv --override-ini="addopts=" \
81 + --deselect tests/test_core.py::test_number_of_colors_without_tty \
82 + --deselect tests/test_core.py::test_number_of_colors_with_tty \
83 + || die "tests failed with ${EPYTHON}"
84 +}
85
86 diff --git a/dev-python/blessed/metadata.xml b/dev-python/blessed/metadata.xml
87 new file mode 100644
88 index 00000000000..9bbec69c0c4
89 --- /dev/null
90 +++ b/dev-python/blessed/metadata.xml
91 @@ -0,0 +1,13 @@
92 +<?xml version="1.0" encoding="UTF-8"?>
93 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
94 +<pkgmetadata>
95 + <maintainer type="person">
96 + <email>sbraz@g.o</email>
97 + <name>Louis Sautier</name>
98 + </maintainer>
99 + <upstream>
100 + <remote-id type="pypi">blessed</remote-id>
101 + <remote-id type="github">jquast/blessed</remote-id>
102 + <bugs-to>https://github.com/jquast/blessed/issues</bugs-to>
103 + </upstream>
104 +</pkgmetadata>