29 lines
590 B
Bash
29 lines
590 B
Bash
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYTHON_COMPAT=( python3_{10..13} )
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="A simple Python wrapper to print color messages in the terminal"
|
|
HOMEPAGE="https://github.com/xy3/print-color"
|
|
SRC_URI="https://github.com/xy3/print-color/archive/refs/tags/v0.4.6.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86 ~arm64"
|
|
IUSE="test"
|
|
|
|
RDEPEND=""
|
|
DEPEND="${RDEPEND}
|
|
test? (
|
|
dev-python/pytest[${PYTHON_USEDEP}]
|
|
)
|
|
"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
python_test() {
|
|
# Run pytest for testing
|
|
${EPYTHON} -m pytest -v tests || die "Tests failed with ${EPYTHON}"
|
|
}
|