You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/ansimarkup/ansimarkup-1.4.0.ebuild

34 lines
718 B

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
inherit distutils-r1
DESCRIPTION="XML-like markup for producing colored terminal text"
HOMEPAGE="https://github.com/gvalkov/python-ansimarkup"
SRC_URI="https://github.com/gvalkov/python-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="
dev-python/colorama[${PYTHON_USEDEP}]
"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
${RDEPEND}
>=dev-python/pytest-3.0.3[${PYTHON_USEDEP}]
)
"
S="${WORKDIR}/python-${P}"
python_test() {
pytest -v || die "Tests failed with ${EPYTHON}"
}