# Maintainer: pkgname=py3-xxhash pkgver=3.2.0 pkgrel=3 pkgdesc="Python Binding for xxHash" url="https://github.com/ifduyue/python-xxhash" arch="all" license="BSD-2-Clause" makedepends=" py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel python3-dev xxhash-dev " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/ifduyue/python-xxhash/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/python-xxhash-$pkgver" build() { export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver export XXHASH_LINK_SO=1 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 cd .testenv bin/python3 -m unittest discover ../tests/ } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" dd64021a0edde4d695eef3af9cc0d4f2b0480cefc07171efba835061ad0a3c7a3635534ec85da89ba91afb2998e0de4a30c03daf437d19293f1740c63f8b91bc py3-xxhash-3.2.0.tar.gz "