# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-qrcode
_pyname=qrcode
pkgver=6.1
pkgrel=1
pkgdesc="QR Code image generator"
url="https://github.com/lincolnloop/python-qrcode"
arch="noarch"
license="MIT"
depends="py3-pillow py3-six"
makedepends="python3-dev py3-setuptools"
_pypiprefix="${_pyname%${_pyname#?}}"
subpackages="$pkgname-doc"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
replaces="py-qrcode py2-qrcode"
builddir="$srcdir/$_pyname-$pkgver"
build() {
python3 setup.py build
}
check() {
python3 setup.py check
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="4831553932442f5535cba15d5958a656b399112f0f379c28ad9b610c33d88ec6d0613dc7047a2315606e49f027bfd13a15a332ce86b80040d56e1114a0f62251 qrcode-6.1.tar.gz"