1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/community/py3-rpds-py/APKBUILD
2025-05-05 16:02:08 +00:00

47 lines
1.1 KiB
Text

# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=py3-rpds-py
pkgver=0.24.0
pkgrel=0
pkgdesc="Python bindings to the Rust Persistent Data Structures (rpds) crate"
url="https://github.com/crate-py/rpds"
arch="all"
license="MIT"
makedepends="
cargo
py3-gpep517
py3-maturin
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/crate-py/rpds/releases/download/v$pkgver/rpds_py-$pkgver.tar.gz"
builddir="$srcdir/rpds_py-$pkgver"
options="net" # Required to download Rust crates
prepare() {
default_prepare
cargo fetch --locked
}
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--config-json '{"build-args": "--frozen"}' \
--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="
dc11c2056f049039ac4afde50176ec3ff439b6a7f1caa90e89d387b68464f0e8541bdd13c84d3616439a46e18e7259f1aa37d3d14252da2d712b302fad2da91a rpds_py-0.24.0.tar.gz
"