# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=py3-construct pkgver=2.10.69 pkgrel=0 pkgdesc="A powerful declarative symmetric parser/builder for binary data" url="https://construct.readthedocs.io/en/latest/" arch="noarch" license="MIT" depends="python3" makedepends=" python3-dev py3-gpep517 py3-setuptools py3-wheel " checkdepends=" py3-arrow py3-cloudpickle py3-cryptography py3-lz4 py3-numpy py3-pytest-benchmark py3-ruamel.yaml " subpackages="$pkgname-pyc" source="https://github.com/construct/construct/archive/v$pkgver/py3-construct-$pkgver.tar.gz" builddir="$srcdir/construct-$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=" c94a1b3a62c9bf4aed30eb262d4439452f98fe909e399d79ece8da4aa707f95c754d540672c2cc9c307425914e43384b5455eb7970ab5d7830af1c0b06313f9e py3-construct-2.10.69.tar.gz "