# Description: An intrinsic PEG Parser-Interpreter for Python
# URL: https://fdik.org/pyPEG/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-build python3-installer

name=python3-pypeg2
version=2.15.2
release=2
source=(https://pypi.python.org/packages/source/p/pyPEG2/pyPEG2-$version.tar.gz)

build() {
  cd pyPEG2-$version

  /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
  /usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
}
