diff --git a/ilot/py3-kadmin/APKBUILD b/ilot/py3-kadmin/APKBUILD new file mode 100644 index 0000000..e65fda4 --- /dev/null +++ b/ilot/py3-kadmin/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +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="noarch" +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 +" diff --git a/ilot/py3-kadmin/fix-int-conversion-error.patch b/ilot/py3-kadmin/fix-int-conversion-error.patch new file mode 100644 index 0000000..445b76b --- /dev/null +++ b/ilot/py3-kadmin/fix-int-conversion-error.patch @@ -0,0 +1,13 @@ +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*/