commit:     4054beaeaf5bd527a24db276502858668978f131
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 18 15:07:56 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 18 15:47:34 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4054beae

dev-python/pygments: Bump to 2.17.0

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

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

diff --git a/dev-python/pygments/Manifest b/dev-python/pygments/Manifest
index 7bad1f079bde..0e53d345f375 100644
--- a/dev-python/pygments/Manifest
+++ b/dev-python/pygments/Manifest
@@ -1 +1,2 @@
 DIST Pygments-2.16.1.tar.gz 4872980 BLAKE2B 
57ec4f52f2bca3d9df993f583434d61ad0adbc2719f2d0b4ac84160672a3a57ec144509c520f2724a15f0222548abfbe0e743fa31a8dac64d54111b2d7393ae4
 SHA512 
9b66c79c03e7ecd36cc00efd428a0a6b372e70dbccdcaae26eff4d56c07a17e2e00d2cf0291eb6624ffd1c896b797789b973e80ccbca4240d56daad95eacfd80
+DIST pygments-2.17.0.tar.gz 4827657 BLAKE2B 
53ab36177bb88a3a19cd14a86bedab5aecf3286e2b08432f643d31d22179c4bf7e938dc8fffc3a5ecfcfead747d26085730dd611d050ae649cea62353639941e
 SHA512 
b385f58bb7dba6b193e6c9715e0a34a883d810d2ee919a24268d7b9fffaf7501c0964c8d84aa26edcb503141330e6b752fe52d11b3d146177d42ecd3ab9211de

diff --git a/dev-python/pygments/pygments-2.17.0.ebuild 
b/dev-python/pygments/pygments-2.17.0.ebuild
new file mode 100644
index 000000000000..11302a94d365
--- /dev/null
+++ b/dev-python/pygments/pygments-2.17.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYPI_PN=${PN^}
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
+
+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 ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos"
+
+BDEPEND="
+       test? (
+               dev-python/lxml[${PYTHON_USEDEP}]
+               dev-python/pillow[${PYTHON_USEDEP}]
+               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
+
+src_install() {
+       distutils-r1_src_install
+       newbashcomp external/pygments.bashcomp pygmentize
+}

Reply via email to