1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
3 pkgname=python-keycloak
6 pkgdesc='Python package providing access to the Keycloak API'
8 url='https://github.com/marcospereirampj/python-keycloak'
10 depends=('python' 'python-requests' 'python-requests-toolbelt' 'python-jose' 'python-urllib3')
11 makedepends=(python-build python-installer python-wheel python-poetry-core)
12 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/marcospereirampj/python-keycloak/archive/refs/tags/v${pkgver}.tar.gz)
13 sha256sums=('290df9db8bc8a39c1f35cc76614c49f0ec38caf8f0ad8e5e43c9e65ac8d20e9a')
21 python -m build --wheel --no-isolation
25 cd "${pkgname}-${pkgver}"
27 python -m installer --destdir="$pkgdir" dist/*.whl
28 install -D -m644 LICENSE \
29 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
33 cd "${pkgname}-$pkgver"
35 # requires: python-httmock
36 #python3 setup.py test