[arch-commits] Commit in python-pam/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Sat Jul 2 18:36:06 UTC 2022


    Date: Saturday, July 2, 2022 @ 18:36:06
  Author: arojas
Revision: 1243645

Update to 2.0.2

Modified:
  python-pam/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-02 18:34:34 UTC (rev 1243644)
+++ PKGBUILD	2022-07-02 18:36:06 UTC (rev 1243645)
@@ -1,26 +1,27 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Maintainer:
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
 
 pkgname=python-pam
-pkgver=1.8.4
-pkgrel=7
-pkgdesc=" Pure Python interface to the Pluggable Authentication Modules system on Linux"
+pkgver=2.0.2
+pkgrel=1
+pkgdesc="Pure Python interface to the Pluggable Authentication Modules system on Linux"
 arch=('any')
 url="https://github.com/FirefighterBlu3/${pkgname}"
 license=('MIT')
-depends=('pam' 'python')
-makedepends=('python-setuptools')
+depends=('pam' 'python-six')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
 source=("https://files.pythonhosted.org/packages/source/${pkgname:0:1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('c856d9c89fedb33951dd8a95727ae57c6887b02d065bbdffd2fd9dbc0183909b')
+sha256sums=('97235235ba9b82dbae8068d1099508455949b275f77273ca22fdbd8b1fb5d950')
 validpgpkeys=('766460A814AE0D0066C3EE922AC27DE01E1DFAD6') # David Ford <david at blue-labs.org>
 
 build() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	python setup.py build
+  cd ${pkgname}-${pkgver}
+  python -m build --wheel --no-isolation
 }
 
 package() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
+  cd ${pkgname}-${pkgver}
 
-	python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }



More information about the arch-commits mailing list