[arch-commits] Commit in python-keycloak/repos (community-any community-any/PKGBUILD)

Jelle van der Waa jelle at gemini.archlinux.org
Mon Sep 13 17:19:07 UTC 2021


    Date: Monday, September 13, 2021 @ 17:19:07
  Author: jelle
Revision: 1014705

archrelease: copy trunk to community-any

Added:
  python-keycloak/repos/community-any/
  python-keycloak/repos/community-any/PKGBUILD
    (from rev 1014704, python-keycloak/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: python-keycloak/repos/community-any/PKGBUILD (from rev 1014704, python-keycloak/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-09-13 17:19:07 UTC (rev 1014705)
@@ -0,0 +1,42 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=python-keycloak
+pkgver=0.26.1
+pkgrel=1
+pkgdesc='Python package providing access to the Keycloak API'
+arch=('any')
+url='https://github.com/marcospereirampj/python-keycloak'
+license=('MIT')
+depends=('python' 'python-requests' 'python-jose')
+makedepends=('python' 'python-setuptools')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/marcospereirampj/python-keycloak/archive/refs/tags/${pkgver}.tar.gz
+        fix-realm-login.patch::https://patch-diff.githubusercontent.com/raw/marcospereirampj/python-keycloak/pull/226.patch)
+sha256sums=('521368115f4efde6e34f07362efb90a9ea56efc91a1bc16ae1ee0bc41ed3621e'
+            '0b7c4e4c1d4ad95c1314fa3be907084568826b6050ca5e53e32c2d0f9b718092')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  patch -Np1 -i ${srcdir}/fix-realm-login.patch
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  python3 setup.py build
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+
+  python3 setup.py install --root="${pkgdir}" --optimize=1
+
+  install -D -m644 LICENSE \
+    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+check() {
+  cd "${pkgname}-$pkgver"
+
+  # requires: python-httmock
+#python3 setup.py test
+}



More information about the arch-commits mailing list