Date: Friday, October 28, 2022 @ 16:47:02
  Author: yan12125
Revision: 1338431

upgpkg: python-scramp 1.4.3-1

* Switch to MIT No Attribution license following upstream [1]
* Switch to PEP517 following upstream [2]
* Drop the hack in prepare() - upstream stopped pinning asn1crypto
  since some time ago [3]

[1] 
https://github.com/tlocke/scramp/commit/07cdadc77767f2678dfe56769e8d4b47b68c3787
[2] 
https://github.com/tlocke/scramp/commit/c9629a5fa0cfe1fa58ff6f8b933eb3a60559cf28
[3] 
https://github.com/tlocke/scramp/commit/d2a3629895ee41c0d3fa4b7d1387fa77e3a8b8b1

Modified:
  python-scramp/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++----------------
 1 file changed, 8 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-28 16:37:07 UTC (rev 1338430)
+++ PKGBUILD    2022-10-28 16:47:02 UTC (rev 1338431)
@@ -1,33 +1,25 @@
 # Maintainer: Chih-Hsuan Yen <[email protected]>
 
 pkgname=python-scramp
-pkgver=1.4.1
-pkgrel=3
+pkgver=1.4.3
+pkgrel=1
 pkgdesc="Python implementation of the SCRAM protocol"
 arch=(any)
 url='https://github.com/tlocke/scramp'
-license=(MIT)
+license=("custom:MIT No Attribution")
 depends=(python python-asn1crypto)
-makedepends=(python-setuptools)
-checkdepends=(python-pytest python-pytest-mock)
+makedepends=(python-build python-installer python-setuptools 
python-versioningit python-wheel)
+checkdepends=(python-pytest python-pytest-mock python-passlib)
 
source=("https://files.pythonhosted.org/packages/source/s/scramp/scramp-$pkgver.tar.gz"{,.asc})
-sha256sums=('f964801077be9be2a1416ffe255d2d78834b3d9d5c8ce5d28f76a856f209f70e'
+sha256sums=('d6885e002707d12a1bcb1f6b243217f06253397afc4e9d970e1a4c009635d6cc'
             'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
<[email protected]>, proven by https://keybase.io/tlocke
 )
 
-prepare() {
-  cd scramp-$pkgver
-
-  # Remove upper bounds of dependencies
-  sed --in-place=.orig -r 's#,?<[0-9.]+,?##;s#==([0-9.]+)#>=\1#' setup.py
-  diff -u setup.py{.orig,} || true
-}
-
 build() {
   cd scramp-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -37,6 +29,6 @@
 
 package() {
   cd scramp-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
 }

Reply via email to