mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-12 07:26:58 +02:00
dev-python/pygments: Sync with Gentoo
It's from Gentoo commit cedc34be6967e7309167b6803d7cf3b28d536775.
This commit is contained in:
parent
64feb40c1d
commit
bcc5c7bd9e
@ -1 +1,2 @@
|
|||||||
DIST pygments-2.19.1.tar.gz 4968581 BLAKE2B 24bc120c4709af2f313010ed953a446bc29ee32269d47c3325067fea60c2a945376426a7c8d37e8916cc09e0534c2b6e63f69226768d6afd6e88dac875cc4419 SHA512 f8547b1eb032fb4c0ad15f1bb61bc6d8c25b309e61850a7ebe4e879fefe1ebb0acba53192d1294e8ef243613ba546e1e7ac7474ab1b49b1a1c1551c6733d9ec7
|
DIST pygments-2.19.1.tar.gz 4968581 BLAKE2B 24bc120c4709af2f313010ed953a446bc29ee32269d47c3325067fea60c2a945376426a7c8d37e8916cc09e0534c2b6e63f69226768d6afd6e88dac875cc4419 SHA512 f8547b1eb032fb4c0ad15f1bb61bc6d8c25b309e61850a7ebe4e879fefe1ebb0acba53192d1294e8ef243613ba546e1e7ac7474ab1b49b1a1c1551c6733d9ec7
|
||||||
|
DIST pygments-2.19.2.tar.gz 4968631 BLAKE2B fad9d5c28194761a77f68f5428a6655c78c498917fa7b91d677e0da18a2fe5521a37440ac52bd7eb7578fac50bf4b55e95dd1ac7334644b775b9ca5b3d0f153e SHA512 3ead3a1fa4c7d86b415287949099cb0e5667ea71f7f69aa3de359bbb5c2f234d90fa5a41ec9c74cb041593e465b934d54bbb7dc87669683f04b94dd3aa6ca03c
|
||||||
|
61
sdk_container/src/third_party/portage-stable/dev-python/pygments/pygments-2.19.2.ebuild
vendored
Normal file
61
sdk_container/src/third_party/portage-stable/dev-python/pygments/pygments-2.19.2.ebuild
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
# Copyright 1999-2025 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=hatchling
|
||||||
|
PYPI_PN=${PN^}
|
||||||
|
PYTHON_FULLY_TESTED=( python3_{11..14} pypy3_11 )
|
||||||
|
PYTHON_COMPAT=( "${PYTHON_FULLY_TESTED[@]}" python3_{13,14}t )
|
||||||
|
|
||||||
|
inherit distutils-r1 bash-completion-r1 pypi
|
||||||
|
|
||||||
|
DESCRIPTION="Pygments is a syntax highlighting package written in Python"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pygments.org/
|
||||||
|
https://github.com/pygments/pygments/
|
||||||
|
https://pypi.org/project/Pygments/
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="BSD-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
$(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
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
EPYTEST_DESELECT=(
|
||||||
|
# fuzzing tests, very slow
|
||||||
|
tests/test_basic_api.py::test_random_input
|
||||||
|
# incompatibility with python-ctags3, apparently
|
||||||
|
# https://github.com/pygments/pygments/issues/2486
|
||||||
|
tests/test_html_formatter.py::test_ctags
|
||||||
|
)
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user