1 # Maintainer: Caleb Maclennan <caleb@alerque.com>
4 _pyname=${pkgname#python-}
7 pkgdesc='Python bindings to Zstandard (zstd) compression library'
9 url="https://github.com/animalize/$_pyname"
13 makedepends=(python-{build,installer,wheel}
14 python-setuptools-scm)
15 checkdepends=(python-tests)
16 _archive="$_pyname-$pkgver"
17 source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
18 sha256sums=('55e503f28f5a9d225ce9d0639e3f5b1801bacace5aea926ec2998e73c5150fe7')
22 python -m build -wn -C=--build-option=--dynamic-link-zstd
27 local _pyver=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')
28 export PYTHONPATH="$PWD/lib.linux-$CARCH-cpython-$_pyver"
29 python -m unittest discover
34 python -m installer -d "$pkgdir" dist/*.whl