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

Caleb Maclennan alerque at gemini.archlinux.org
Sat Aug 28 08:11:15 UTC 2021


    Date: Saturday, August 28, 2021 @ 08:11:15
  Author: alerque
Revision: 1007589

upgpkg: python-qrcode 7.3-1; overhaul dependencies

Modified:
  python-qrcode/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-08-28 08:10:57 UTC (rev 1007588)
+++ PKGBUILD	2021-08-28 08:11:15 UTC (rev 1007589)
@@ -1,18 +1,22 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
 # Contributor Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
 # Contributor: Francois Boulogne <fboulogne at april dot org>
 
 pkgname=python-qrcode
-pkgver=6.1
-pkgrel=6
+pkgver=7.3
+pkgrel=1
 pkgdesc='Python library to generate QR codes'
+arch=('any')
 url='https://github.com/lincolnloop/python-qrcode'
-arch=('any')
 license=('custom')
-depends=('python-pillow' 'python-six' 'python-setuptools')
-source=(https://github.com/lincolnloop/python-qrcode/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
-sha512sums=('3af3b67959be8dd30b372145ff7b8aa1e20153c403b17c688d5a7189e3b25da872c6eee916e6d47e4f6545c87c0c0eb9af52e115353a0e8c0f73e4948ddc6829')
+depends=('python')
+makedepends=('python-setuptools')
+optdepends=('python-pillow: generate images')
+checkdepends=('python-pillow' 'python-pytest')
+source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
+sha512sums=('1d24dd7d3c9e0cd909a780b2639d2db54e0db6bc98100b6446cb290aa78ed1b9ed6d14c4cdd8a8ddcbe7a0ae6be8724c5b26118d25985450a974d78a520b3b0e')
 
 build() {
   cd $pkgname-$pkgver
@@ -21,11 +25,12 @@
 
 check() {
   cd $pkgname-$pkgver
-  python -m unittest discover qrcode
+  pytest
 }
 
 package() {
   cd $pkgname-$pkgver
+  export PYTHONHASHSEED=0
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
   install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
 }



More information about the arch-commits mailing list