aports/testing/py3-flask-qrcode/APKBUILD

36 lines
1.1 KiB
Text

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-flask-qrcode
_pkgname=flask_qrcode
pkgver=3.2.0
pkgrel=0
pkgdesc="Simple flask extension to render QR codes on template"
url="https://github.com/marcoagner/Flask-QRcode"
arch="noarch"
license="GPL-3.0-or-later"
depends="py3-flask py3-qrcode"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-flask-qrcode" # Backwards compatibility
provides="py-flask-qrcode=$pkgver-r$pkgrel" # Backwards compatibility
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}
sha512sums="
268b50cb0c282d9adf645534160c78cbfee038d2d90f4e910e961d8640a3b9c248420956a708fe63f352881d358d3ba70e85985dd215cd6a46941b71fe5eb64a flask_qrcode-3.2.0.tar.gz
"