mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 11:19:50 +03:00
41 lines
1 KiB
Text
41 lines
1 KiB
Text
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=py3-zstd
|
|
pkgver=1.5.7.0
|
|
pkgrel=0
|
|
pkgdesc="Simple Python bindings to Yann Collet ZSTD compression library"
|
|
url="https://pypi.org/project/zstd/"
|
|
arch="all"
|
|
license="BSD-2-Clause"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
zstd-dev
|
|
"
|
|
checkdepends="py3-pytest-forked"
|
|
source="https://github.com/sergey-dryabzhinsky/python-zstd/archive/v$pkgver/py3-zstd-$pkgver.tar.gz"
|
|
builddir="$srcdir/python-zstd-$pkgver"
|
|
|
|
build() {
|
|
export ZSTD_EXTERNAL="true"
|
|
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 --forked
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
5c0e6e9462f388fec091d1a3036d26a17cb7d3b5f5a3530e611595386fef8aabe3cb79068c2fe8649896306377c4b40ba32d7d2098fdcf26adf926af09d2ae7d py3-zstd-1.5.7.0.tar.gz
|
|
"
|