Compare commits

...

3 commits

Author SHA1 Message Date
0ce6d173c9
ilot/py3-kadmin: drop in favor of kadmin-rs
Some checks failed
/ lint (pull_request) Failing after 33s
/ deploy-x86_64 (pull_request) Has been skipped
/ build-x86_64 (pull_request) Failing after 2m44s
/ deploy-aarch64 (pull_request) Has been skipped
/ build-aarch64 (pull_request) Failing after 12m33s
2025-01-05 19:50:00 -05:00
fd6bcd788b
ilot/kadmin-rs: new aport 2025-01-05 19:49:46 -05:00
41374eda0b
ilot/authentik: upgrade to 2024.12.1 2025-01-05 19:49:02 -05:00
4 changed files with 58 additions and 55 deletions

View file

@ -1,7 +1,7 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=authentik
pkgver=2024.10.5
pkgver=2024.12.1
pkgrel=0
pkgdesc="An open-source Identity Provider focused on flexibility and versatility"
url="https://github.com/goauthentik/authentik"
@ -59,7 +59,7 @@ depends="
py3-jsonpatch
py3-jwt
py3-jwcrypto
py3-kadmin
py3-kadmin-rs
py3-kubernetes
py3-ldap3
py3-lxml

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
"

View file

@ -1,40 +0,0 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-kadmin
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=kadmin
pkgver=0.2.0
pkgrel=0
pkgdesc="Python module for kerberos admin (kadm5)"
url="https://github.com/authentik-community/python-kadmin"
arch="all"
license="MIT"
checkdepends="py3-pytest py3-k5test"
makedepends="py3-setuptools py3-gpep517 py3-wheel poetry python3-dev"
source="
$pkgname-$pkgver.tar.gz::https://github.com/authentik-community/python-kadmin/archive/refs/tags/v$pkgver.tar.gz
fix-int-conversion-error.patch"
builddir="$srcdir"/python-kadmin-$pkgver
subpackages="$pkgname-pyc"
build() {
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 test/tests.py
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
b405e914cb296f2bfe4f78d2791329804a0db02816182517b59ed1452a21d51dafe303609fddafbbeea57128bba4bcdfcd9b363f193ae0402cc52cf1b3b9020e py3-kadmin-0.2.0.tar.gz
e17223f8597d51ea099f5d4483dd72545b7d64ad76895553a6b7112416536aae93a59a2fd7aea044420495ab8146db7290abd826b268b2d6e518442c3c85c506 fix-int-conversion-error.patch
"

View file

@ -1,13 +0,0 @@
diff --git a/src/PyKAdminPolicyObject.c.orig b/src/PyKAdminPolicyObject.c
index 0bf3ee8..68387c4 100644
--- a/src/PyKAdminPolicyObject.c.orig
+++ b/src/PyKAdminPolicyObject.c
@@ -120,7 +120,7 @@ PyTypeObject PyKAdminPolicyObject_Type = {
sizeof(PyKAdminPolicyObject), /*tp_basicsize*/
0, /*tp_itemsize*/
(destructor)PyKAdminPolicyObject_dealloc, /*tp_dealloc*/
- KAdminPolicyObject_print, /*tp_print*/
+ 0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/