mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-28 16:17:38 -07:00
dep for loguru which I'm going to add Package-Manager: Portage-2.3.65, Repoman-2.3.12 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
34 lines
718 B
Bash
34 lines
718 B
Bash
# 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}"
|
|
}
|