diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-02-25 08:27:52 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-02-25 08:40:18 +0100 |
commit | cbb67255dbce8c90422bf1d193f41e47ca99f948 (patch) | |
tree | 39eb9c6d66ef80be1bde2298ffe5d917ea40e969 /dev-python/blessed/blessed-1.18.0.ebuild | |
parent | dev-python/hypothesis: Bump to 6.3.2 (diff) | |
download | gentoo-cbb67255dbce8c90422bf1d193f41e47ca99f948.tar.gz gentoo-cbb67255dbce8c90422bf1d193f41e47ca99f948.tar.bz2 gentoo-cbb67255dbce8c90422bf1d193f41e47ca99f948.zip |
dev-python/blessed: Bump to 1.18.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/blessed/blessed-1.18.0.ebuild')
-rw-r--r-- | dev-python/blessed/blessed-1.18.0.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/blessed/blessed-1.18.0.ebuild b/dev-python/blessed/blessed-1.18.0.ebuild new file mode 100644 index 000000000000..4db2921df380 --- /dev/null +++ b/dev-python/blessed/blessed-1.18.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{7..9} ) + +inherit distutils-r1 + +DESCRIPTION="Library for making terminal apps using colors, keyboard input and positioning" +HOMEPAGE="https://github.com/jquast/blessed" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~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 +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 + # Requires pytest-xdist and has no value for us + sed -i '/^looponfailroots =/d' tox.ini || 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= pytest -vv --override-ini="addopts=" || + die "tests failed with ${EPYTHON}" +} |