# Maintainer: MichaƂ Adamski pkgname=py3-bitstring pkgver=4.0.1 pkgrel=0 pkgdesc="Simple construction, analysis and modification of binary data" url="https://github.com/scott-griffiths/bitstring" license="MIT" arch="noarch" depends="python3" makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel" source="https://github.com/scott-griffiths/bitstring/archive/bitstring-$pkgver/py3-bitstring-$pkgver.tar.gz pyproject.patch " builddir="$srcdir/bitstring-bitstring-$pkgver" build() { gpep517 build-wheel \ --wheel-dir dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m unittest } package() { python3 -m installer -d "$pkgdir" \ dist/bitstring-$pkgver-py3-none-any.whl } sha512sums=" f036a042f83c70b830f987114e7eb54754145296c60cd6486f398247a069c50588f3c86395a849a99e3c9b94364f1fcf4fedf4b59b80f03b6aecb38d992f5490 py3-bitstring-4.0.1.tar.gz 7a402244267ca3af4aa1c7d5fa7b38e1a098139978f505ff084901433ab2a7c578ce21f3f5c86f6cf26d25f472b24c43cc4d60b4d60403a2e587c23fd39dc59c pyproject.patch "