# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=py3-bitstruct pkgver=8.18.0 pkgrel=0 pkgdesc="Python bit pack/unpack package" url="https://github.com/eerimoq/bitstruct" arch="all" license="MIT" depends="py3-codespell" makedepends=" py3-gpep517 py3-setuptools py3-wheel python3-dev " checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/eerimoq/bitstruct/archive/refs/tags/$pkgver.tar.gz" options="!check" # Fails to import bitstruct.c builddir="$srcdir/bitstruct-$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 } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" a4f831e72e761c4538265397bab8692444e93a621ac99cdb3e61605895c682f99d8251abc2f4224f8e25fe1b6e9b6d5c421441820410c81688bf6e0582ee6ff5 py3-bitstruct-8.18.0.tar.gz "