tailwhip/dev-python/print-color/print-color-0.4.6.ebuild

36 lines
767 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{11..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/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm64 ~arm"
IUSE="test"
RDEPEND=""
BDEPEND="
dev-python/poetry-core[${PYTHON_USEDEP}]
"
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}"
}