# Contributor: Andy Hawkins # Maintainer: Andy Hawkins pkgname=py3-sly pkgver=0.5 pkgrel=1 pkgdesc="Python implementation of lax and yacc" url="https://github.com/dabeaz/sly" arch="noarch" license="BSD-3-Clause" depends=" python3 " makedepends=" py3-gpep517 py3-installer py3-setuptools py3-wheel " checkdepends=" py3-pytest py3-regex " _commit="40009882310b6f1022ab050ff7bf6025500ee45c" source="sly-v$pkgver.tar.gz::https://github.com/dabeaz/sly/archive/$_commit.tar.gz" builddir="$srcdir/sly-$_commit" build() { gpep517 build-wheel \ --wheel-dir dist \ --output-fd 3 3>&1 >&2 } check() { PYTHONPATH="$PWD/build/lib" pytest } package() { python3 -m installer -d "$pkgdir" \ dist/sly-$pkgver*-py3-none-any.whl } sha512sums=" f589a50bd8826b995beb6f15980223477d70b07981d350a0d89659a5c1fb8003065ea68e8849b7b0f4e5524b9c086d511913745cde8e66d3c15c5f0399664b94 sly-v0.5.tar.gz "