makedepends=(python-hatchling)

description="Python 3 syntax highlighter"
url="http://pygments.org"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=pygmentize
_name=pygments
version=2.19.2
release=2

source=(https://pypi.org/packages/source/p/pygments/pygments-${version}.tar.gz)

prepare() {
  pip3 install --upgrade pip
  pip3 install build pathspec trove-classifiers pluggy wheel installer
}

build=pip3

package() {
  # Remove everything exept the binary
  find $PKG -type f -not -name pygmentize -delete
}
