From cb5f704a4918f3d0a913ea9790f37e57197607b1 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 31 Mar 2025 16:44:49 -0400 Subject: [PATCH] ilot/py3-kadmin-rs: new aport --- ilot/py3-kadmin-rs/APKBUILD | 56 +++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 ilot/py3-kadmin-rs/APKBUILD diff --git a/ilot/py3-kadmin-rs/APKBUILD b/ilot/py3-kadmin-rs/APKBUILD new file mode 100644 index 0000000..fae9ad1 --- /dev/null +++ b/ilot/py3-kadmin-rs/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=py3-kadmin-rs +pkgver=0.5.3 +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=" +61d3ddfe619827cef83af944b2281f2cf6966d95c3d4a5883b82169bf1f34e6b7173cfa086198e3e0f9a227590a497dcb1c9b209cd4d0c6d361fdfce9b98eec0 py3-kadmin-rs-0.5.3.tar.gz +"