# Maintainer: Michał Polański pkgname=py3-cstruct pkgver=5.3 pkgrel=1 pkgdesc="C-style structs for Python" url="https://github.com/andreax79/python-cstruct" license="MIT" arch="noarch !s390x" # test_union_unpack test fails on s390x makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://github.com/andreax79/python-cstruct/archive/v$pkgver/py3-cstruct-$pkgver.tar.gz" builddir="$srcdir/python-cstruct-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/cstruct-$pkgver-py2.py3-none-any.whl } sha512sums=" 71ad411c6733676c165c9724554a7c1b5f56921ac925020817d812b53b1dfcc9a30d794e8aa8da75bae144e3d659a7426034b5cced4262a699e4626e287b3790 py3-cstruct-5.3.tar.gz "