ilot/py3-kadmin: new aport
This commit is contained in:
parent
bdf770d7d7
commit
8ff85ccda5
2 changed files with 53 additions and 0 deletions
40
ilot/py3-kadmin/APKBUILD
Normal file
40
ilot/py3-kadmin/APKBUILD
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
# 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="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
|
||||||
|
"
|
13
ilot/py3-kadmin/fix-int-conversion-error.patch
Normal file
13
ilot/py3-kadmin/fix-int-conversion-error.patch
Normal file
|
@ -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*/
|
Loading…
Add table
Reference in a new issue