maintainer="Michał Polański <michal@polanski.me>"
pkgname=py3-zstandard
pkgver=0.23.0
pkgrel=0
pkgdesc="Python bindings to the Zstandard (zstd) compression library"
url="https://github.com/indygreg/python-zstandard"
license="BSD-3-Clause"
arch="all"
# use bundled zstd, due to the system zstd may not match the actually used
# headers.
# https://github.com/indygreg/python-zstandard/issues/48#issuecomment-2032474718
makedepends="python3-dev py3-setuptools py3-cffi"
checkdepends="py3-hypothesis"
subpackages="$pkgname-pyc"
source="https://github.com/indygreg/python-zstandard/archive/$pkgver/py3-zstandard-$pkgver.tar.gz"
builddir="$srcdir/python-zstandard-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --root="$pkgdir" --skip-build
}

sha512sums="
06d799f8c5e89e5cc2f5b8ff100aeb3c3ff938757ce39852affb075487f65406d7d3f6d611b1864ec025fff86a51bf15b80c8af6260beda050b4fef5b7edd206  py3-zstandard-0.23.0.tar.gz
"
