ilot/kadmin-rs: new aport

This commit is contained in:
Antoine Martin 2025-01-05 19:49:46 -05:00
parent 41374eda0b
commit fd6bcd788b
Signed by: ayakael
GPG key ID: D62A472A4AA7D541

56
ilot/kadmin-rs/APKBUILD Normal file
View file

@ -0,0 +1,56 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=kadmin-rs
pkgver=0.5.2
pkgrel=0
pkgdesc="Rust and Python interfaces to the Kerberos administration interface (kadm5)"
url="https://github.com/authentik-community/kadmin-rs"
arch="all"
license="MIT"
checkdepends="py3-pytest py3-k5test"
makedepends="
cargo
cargo-auditable
clang-libclang
py3-setuptools
py3-setuptools-rust
py3-gpep517
py3-wheel
poetry
python3-dev
sccache
"
source="$pkgname-$pkgver.tar.gz::https://github.com/authentik-community/kadmin-rs/archive/refs/tags/kadmin/version/$pkgver.tar.gz"
builddir="$srcdir"/kadmin-rs-kadmin-version-$pkgver
subpackages="$pkgname-pyc"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --release --locked
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
# cargo test --locked
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m unittest python/tests/test_*.py
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
c92ef8462e44893c9d334c42481ee40caeace2522b5527ced60b41cdda32bc70b98b747151cfffec8fc20033493b374075e216c93d2c126c8f903bfbb3d01ec0 kadmin-rs-0.5.2.tar.gz
"