ilot/py3-kadmin-rs: new aport
This commit is contained in:
parent
fd4a1e4702
commit
15ee34b6db
1 changed files with 56 additions and 0 deletions
56
ilot/py3-kadmin-rs/APKBUILD
Normal file
56
ilot/py3-kadmin-rs/APKBUILD
Normal file
|
@ -0,0 +1,56 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
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
|
||||
"
|
Loading…
Add table
Reference in a new issue