void-packages/srcpkgs/python-qrcode/template

37 lines
860 B
Bash

# Template file for 'python-qrcode'
pkgname=python-qrcode
version=6.0
revision=1
noarch=yes
wrksrc="qrcode-${version}"
build_style=python-module
pycompile_module="qrcode"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six"
checkdepends="python3-six"
short_desc="QR Code image generator (Python2)"
maintainer="Charles E. Lehner <cel@celehner.com>"
homepage="https://github.com/lincolnloop/python-qrcode"
license="BSD-3-Clause"
distfiles="${PYPI_SITE}/q/qrcode/qrcode-${version}.tar.gz"
checksum=037b0db4c93f44586e37f84c3da3f763874fcac85b2974a69a98e399ac78e1bf
do_check() {
python3 setup.py test
}
post_install() {
vlicense LICENSE
}
python3-qrcode_package() {
noarch=yes
depends="python3-six"
pycompile_module="qrcode"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}