Package Details: python-flask-qrcode 3.0.0-1

Git Clone URL: https://aur.archlinux.org/python-flask-qrcode.git (read-only, click to copy)
Package Base: python-flask-qrcode
Description: Flask-QRcode is a concise Flask extension to easily render QR codes on Jinja2 templates using python-qrcode.
Upstream URL: https://marcoagner.github.io/Flask-QRcode/
Licenses: GPL3
Submitter: metalgamer
Maintainer: None
Last Packager: nullptr_t
Votes: 0
Popularity: 0.000000
First Submitted: 2018-10-17 14:19 (UTC)
Last Updated: 2021-02-09 06:45 (UTC)

Latest Comments

alan1world commented on 2023-02-06 10:49 (UTC)

Python packages which include the tests in a base test folder will conflict if the test folder is installed (in this instance - python-tinydb).

I've modified the PKGBUILD and created a patch file to exclude the test folder from installation.

PKBUILD changes:

source=(
  "https://github.com/marcoagner/${_pkgname}/archive/v${pkgver}.tar.gz"
  "Flask-QRcode-3.0.0.patch"
  )
sha512sums=('f8ceaca3799e9e01c6c68ace8ef909c4e5a6e2133a0f53d8d8221a0cf84352713d53237924d510305ed43755803d5458b4bad4e3bd978f53ebb98ac0b9792d5d'
            '236d15441a28f6a7263d0fd0e0e7950c866689f7cecf280b287e2a4329bcca6d3b997b051da885defe99a9c17b0531a6f5d0df1984b4795087c357b164185af2')

prepare() {
  cd "$srcdir/$_pkgname-$pkgver"
  patch --forward --strip=1 --input="${srcdir}/Flask-QRcode-3.0.0.patch"
}

Patch:

diff --unified --recursive --text --color Flask-QRcode-3.0.0.orig/setup.py Flask-QRcode-3.0.0.new/setup.py
--- Flask-QRcode-3.0.0.orig/setup.py    2019-04-26 19:27:16.000000000 +0100
+++ Flask-QRcode-3.0.0.new/setup.py 2023-02-06 09:39:08.101449932 +0000
@@ -73,5 +73,5 @@
         'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
         'Topic :: Software Development :: Libraries :: Python Modules'
     ],
-    packages=find_packages()
+    packages=find_packages(exclude=["tests"])
 )