diff options
Diffstat (limited to 'dev-python/blessed/blessed-1.20.0.ebuild')
-rw-r--r-- | dev-python/blessed/blessed-1.20.0.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/blessed/blessed-1.20.0.ebuild b/dev-python/blessed/blessed-1.20.0.ebuild new file mode 100644 index 000000000000..692185a94d06 --- /dev/null +++ b/dev-python/blessed/blessed-1.20.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +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/ +" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="amd64 arm64 ~riscv x86" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + dev-python/wcwidth[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs dev-python/sphinx-rtd-theme +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 + # Ignore coverage options + COLORTERM= epytest --override-ini="addopts=" +} |