python-pygments: Update to 2.17.2

This commit is contained in:
Christoph Reiter
2023-12-06 08:04:18 +01:00
parent f11ee8f8ae
commit 9a80661380

View File

@@ -1,44 +1,34 @@
# Maintainer: João Guerra <joca.bt@gmail.com>
_pyname=Pygments
pkgbase="python-pygments"
pkgname=("python-pygments")
pkgver=2.16.1
pkgver=2.17.2
pkgrel=1
pkgdesc="A syntax highlighting engine written in Python"
arch=("i686" "x86_64")
url="https://pygments.org/"
msys2_repository_url="https://github.com/pygments/pygments"
license=('spdx:BSD-2-Clause')
depends=("python")
makedepends=(
"python-setuptools"
"python-wheel"
"python-hatchling"
"python-build"
"python-installer"
)
provides=("python3-pygments")
conflicts=("python3-pygments")
replaces=("python3-pygments")
source=("https://pypi.python.org/packages/source/P/Pygments/Pygments-${pkgver}.tar.gz")
noextract=("Pygments-${pkgver}.tar.gz")
sha256sums=('1daff0494820c69bc8941e407aa20f577374ee88364ee10a98fdbe0aece96e29')
prepare () {
# workaround for symlink issue
tar -xf ${_pyname}-${pkgver}.tar.gz || true
cp ${_pyname}-${pkgver}/scripts/debug_lexer.py \
${_pyname}-${pkgver}/scripts/find_error.py
}
source=("https://pypi.python.org/packages/source/p/pygments/pygments-${pkgver}.tar.gz")
sha256sums=('da46cec9fd2de5be3a8a784f434e4c4ab670b4ff54d605c4c2717e9d49c4c367')
build() {
cd "${_pyname}-${pkgver}"
cd "pygments-${pkgver}"
python -m build --wheel --skip-dependency-check --no-isolation
}
package () {
cd "${_pyname}-${pkgver}"
cd "pygments-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 external/pygments.bashcomp "${pkgdir}/usr/share/bash-completion/completions/pygmentize"