# Maintainer: Guy Godfroy pkgname=py3-bite-parser pkgver=0.2.3 pkgrel=0 pkgdesc="Asynchronous parser taking incremental bites out of your byte input stream" url="https://github.com/jgosmann/bite-parser" arch="noarch" license="MIT" makedepends=" py3-gpep517 py3-poetry-core py3-wheel " checkdepends=" py3-pytest-asyncio py3-pytest-forked py3-pytest-xdist " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/jgosmann/bite-parser/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/bite-parser-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest -n auto --forked } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl rm -r "$pkgdir"/usr/lib/python*/site-packages/bite/tests } sha512sums=" 1ff7bd881e8f9057ece5f830b30b05c5db9a4c16b883808b0e638f9dcc4a2eb71d986861ecd65fef81fa206f693f72cfd3ba8fa4162e0cb25d16869eaf3b0599 py3-bite-parser-0.2.3.tar.gz "