dev-python/pygments: Sync with Gentoo

It's from Gentoo commit ca3cc9fc57c0f3f51e2bf29cc3f9730b4bf69c21.
This commit is contained in:
Flatcar Buildbot 2025-06-16 07:09:05 +00:00 committed by Krzesimir Nowak
parent e46a4c6976
commit f7bd51100f

View File

@ -5,7 +5,8 @@ EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYPI_PN=${PN^}
PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 )
PYTHON_FULLY_TESTED=( python3_{11..14} pypy3_11 )
PYTHON_COMPAT=( "${PYTHON_FULLY_TESTED[@]}" python3_{13,14}t )
inherit distutils-r1 bash-completion-r1 pypi
@ -22,8 +23,10 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390
BDEPEND="
test? (
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
' "${PYTHON_FULLY_TESTED[@]}")
dev-python/wcag-contrast-ratio[${PYTHON_USEDEP}]
virtual/ttf-fonts
)
@ -40,6 +43,18 @@ EPYTEST_DESELECT=(
EPYTEST_XDIST=1
distutils_enable_tests pytest
python_test() {
if [[ ${EPYTHON} == python3.14* ]] ; then
EPYTEST_IGNORE+=(
# https://github.com/python/cpython/issues/133653
# https://github.com/python/cpython/pull/133813
tests/test_cmdline.py
)
fi
epytest
}
src_install() {
distutils-r1_src_install
newbashcomp external/pygments.bashcomp pygmentize