1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
10 DESCRIPTION="Convert text with ANSI color codes to HTML"
11 HOMEPAGE="https://pypi.org/project/ansi2html/ https://github.com/ralphbean/ansi2html"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
16 KEYWORDS="amd64 arm x86"
18 RESTRICT="!test? ( test )"
21 dev-python/setuptools[${PYTHON_USEDEP}]
22 >=dev-python/six-1.7.3[${PYTHON_USEDEP}]"
26 dev-python/nose[${PYTHON_USEDEP}]
28 dev-python/setuptools[${PYTHON_USEDEP}]
32 distutils-r1_src_compile
36 chmod -x "${S}"/tests/* || die
41 python_install_all() {
43 DOCS=( README.rst man/${PN}.1.txt )
44 distutils-r1_python_install_all