summaryrefslogtreecommitdiff
path: root/dev-python/blessed
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/blessed')
-rw-r--r--dev-python/blessed/Manifest1
-rw-r--r--dev-python/blessed/blessed-1.22.0.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/blessed/Manifest b/dev-python/blessed/Manifest
index ceede7806944..c385663a72a9 100644
--- a/dev-python/blessed/Manifest
+++ b/dev-python/blessed/Manifest
@@ -1 +1,2 @@
DIST blessed-1.21.0.tar.gz 6660011 BLAKE2B 13e870896b70435fb86c5f4902c13bc13b4001817407da749b8e297ffcf4749bbfcc75a856a536fd47c75ff849f6260ce0a3d51946ce32275a81fa7bfbb91ab3 SHA512 e57b9ede0706875b578b080b6a7cc65c2882b52c5b5b85a13c615f8419618ceae6ded31228784f20504c5204c0b6897a9d7122c45785cd68982772169ee7222f
+DIST blessed-1.22.0.tar.gz 6660050 BLAKE2B 7831755658fdd76521bde748184837889167333cdad4c552e12e3809af37c390f7d066d2cab284e20b7c01a62d768eecd92ee976ea44b0ced81225ac5afa2902 SHA512 0bdb10332420ab078151790b4b090d4d8703659ce34cdf9465dc160feb03b51eed49c4f5226b29e9290918ba5a4311626efe18028717f454e3b73e7f6bad9695
diff --git a/dev-python/blessed/blessed-1.22.0.ebuild b/dev-python/blessed/blessed-1.22.0.ebuild
new file mode 100644
index 000000000000..27ef5d4eeb27
--- /dev/null
+++ b/dev-python/blessed/blessed-1.22.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Library for making terminal apps using colors, keyboard input and positioning"
+HOMEPAGE="
+ https://github.com/jquast/blessed/
+ https://pypi.org/project/blessed/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+
+RDEPEND="
+ dev-python/wcwidth[${PYTHON_USEDEP}]
+"
+
+distutils_enable_sphinx docs dev-python/sphinx-rtd-theme
+
+EPYTEST_PLUGINS=()
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ # Skip those extensions as they don't have a Gentoo package
+ # Remove calls to scripts that generate rst files because they
+ # are not present in the tarball
+ sed -e '/sphinxcontrib.manpage/d' -e '/sphinx_paramlinks/d' \
+ -e '/^for script in/,/runpy.run_path/d' \
+ -i docs/conf.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ # COLORTERM must not be truecolor
+ # See https://github.com/jquast/blessed/issues/162
+ local -x COLORTERM=
+ # Ignore coverage options
+ epytest --override-ini="addopts="
+}