Date: Monday, November 14, 2022 @ 10:34:21
  Author: jelle
Revision: 1347507

upgpkg: python-scrypt 0.8.20-3: Stop using python setup.py test

Modified:
  python-scrypt/trunk/PKGBUILD

----------+
 PKGBUILD |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-14 10:30:36 UTC (rev 1347506)
+++ PKGBUILD    2022-11-14 10:34:21 UTC (rev 1347507)
@@ -3,7 +3,7 @@
 
 pkgname=python-scrypt
 pkgver=0.8.20
-pkgrel=2
+pkgrel=3
 pkgdesc='Bindings for the scrypt key derivation function library'
 url='https://github.com/holgern/py-scrypt'
 arch=('x86_64')
@@ -21,7 +21,8 @@
 
 check() {
   cd py-scrypt-${pkgver}
-  python setup.py test
+  local python_version=$(python -c 'import sys; print("".join(map(str, 
sys.version_info[:2])))')
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-${python_version}" python -m 
unittest discover -vs .
 }
 
 package() {

Reply via email to