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

Chih-Hsuan Yen yan12125 at archlinux.org
Sun Feb 7 15:59:57 UTC 2021


    Date: Sunday, February 7, 2021 @ 15:59:56
  Author: yan12125
Revision: 848133

upgpkg: python-scramp 1.2.1-1; switched to PyPI tarballs & enable signature checking; following upstream testing changes [1]

[1] https://github.com/tlocke/scramp/commit/f3fd760a6a08ad9a68be09f71d7cae56de126fbd

Modified:
  python-scramp/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-07 15:55:11 UTC (rev 848132)
+++ PKGBUILD	2021-02-07 15:59:56 UTC (rev 848133)
@@ -1,18 +1,30 @@
 # Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
 
 pkgname=python-scramp
-pkgver=1.2.0
-pkgrel=3
+pkgver=1.2.1
+pkgrel=1
 pkgdesc="Python implementation of the SCRAM protocol"
 arch=(any)
 url='https://github.com/tlocke/scramp'
 license=(MIT)
-depends=(python)
+depends=(python python-asn1crypto)
 makedepends=(python-setuptools)
 checkdepends=(python-pytest)
-source=(https://github.com/tlocke/scramp/archive/$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('f8ddf442a0e7e3b3bb4d811da80ec6400e36819b4bc283b8227f76ab90eedf2b')
+source=("https://files.pythonhosted.org/packages/source/s/scramp/scramp-$pkgver.tar.gz"{,.asc})
+sha256sums=('7efa578679cc2e9bafc965f9f7a597f512cd2b3be2e74caf6b75bc355905a6d2'
+            'SKIP')
+validpgpkeys=(
+  'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke <tlocke at tlocke.org.uk>, 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
@@ -20,7 +32,7 @@
 
 check() {
   cd scramp-$pkgver
-  PYTHONPATH=. pytest -v -x tests
+  python -m pytest test
 }
 
 package() {



More information about the arch-commits mailing list