# Compiling Time: 0 SBU
# Maintainer: Pingax <pingax@frugalware.fr>
# Contributor: Priyank Gosalia <priyankmg@gmail.com>
# Contributor: AlexExtreme <alex@alex-smith.me.uk>

pkgname=python3-pygments
_F_archive_name=pygments
pkgver=2.19.1
pkgrel=1
pkgdesc="Pygments is a fast syntax highlighter written in Python with a special focus on details. (Python3)"
depends=('python3>=3.13')
makedepends=('python3-build' 'python3-installer' 'python3-flit_core' 'python3-setuptools' 'python3-wheel' 'python3-hatchling')
groups=('devel-extra')
archs=('x86_64')
url="http://pygments.org/"
_F_pypi_name="Pygments"
Finclude pypi
sha1sums=('b4107398e4c5c047fafd6a54fad7867edec903fe')
_F_python_version="python3"
removes=('/usr/bin/pygmentize')

build() {
        Fcd
        Fpatchall
        Fexec python3 -m build -nw || Fdie
        Fexec python3 -m installer --destdir="$Fdestdir" dist/*.whl || Fdie
}

# optimization OK
