repo/gentoo:master commit in: dev-python/pygments/

Michał Górny <[email protected]>
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1786985123.af4409516dc378310bd6d7f354fce9b4c28ae351.mgorny@gentoo>
commit:     af4409516dc378310bd6d7f354fce9b4c28ae351
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 17 16:16:35 2026 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug 17 16:45:23 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af440951

dev-python/pygments: Bump to 2.21.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pygments/Manifest               |  1 +
 dev-python/pygments/pygments-2.21.0.ebuild | 47 ++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/dev-python/pygments/Manifest b/dev-python/pygments/Manifest
index fc3be3039a29..babdfcefdd08 100644
--- a/dev-python/pygments/Manifest
+++ b/dev-python/pygments/Manifest
@@ -1,2 +1,3 @@
 DIST pygments-2.19.2.tar.gz 4968631 BLAKE2B fad9d5c28194761a77f68f5428a6655c78c498917fa7b91d677e0da18a2fe5521a37440ac52bd7eb7578fac50bf4b55e95dd1ac7334644b775b9ca5b3d0f153e SHA512 3ead3a1fa4c7d86b415287949099cb0e5667ea71f7f69aa3de359bbb5c2f234d90fa5a41ec9c74cb041593e465b934d54bbb7dc87669683f04b94dd3aa6ca03c
 DIST pygments-2.20.0.tar.gz 4955991 BLAKE2B 0d3ef30bdca0713946930f97d222fe3d5096a340b435383b7a6cdd0c2570cb1c4a723dcf6b09e4253fbc7c8b3eefe093529d45c4b4c1753d3e45f25347e84958 SHA512 7d073ead03b1722f862a72a962346f2d76bafb472f58fd5038061ca09675483f3b427bec700fe4ef49da9cace9e65b0d5414cda5ee20ebc056759e0c422f4547
+DIST pygments-2.21.0.tar.gz 5005329 BLAKE2B b381d374ff12e230350f206a4ecd0c273e48563ecfe221c4aff7014278dc2f83884cf5dc58a63241871812750ec08f8475dbddb80df39c8561595296e21f4f74 SHA512 c2d2e48556be345378004463d8f0f357b6b0652a6af0f33fa255b9f749f7ab42e4bdde0fd6870619bfe225b83d13dbb1cb891c989cf43d12a2cdaf6f89ab8279

diff --git a/dev-python/pygments/pygments-2.21.0.ebuild b/dev-python/pygments/pygments-2.21.0.ebuild
new file mode 100644
index 000000000000..5d0e76204e22
--- /dev/null
+++ b/dev-python/pygments/pygments-2.21.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2026 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_{12..15} )
+PYTHON_COMPAT=( "${PYTHON_FULLY_TESTED[@]}" python3_{13..15}t )
+
+inherit distutils-r1 pypi shell-completion
+
+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? (
+		dev-python/lxml[${PYTHON_USEDEP}]
+		$(python_gen_cond_dep '
+			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
+)
+
+EPYTEST_PLUGINS=()
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+src_install() {
+	distutils-r1_src_install
+	newbashcomp external/pygments.bashcomp pygmentize
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.