void-packages/srcpkgs/python-pyotp/template

37 lines
827 B
Bash

# Template file for 'python-pyotp'
pkgname=python-pyotp
version=2.3.0
revision=1
archs=noarch
wrksrc="pyotp-${version}"
build_style=python-module
pycompile_module="pyotp"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 One-Time Password Library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="https://github.com/pyotp/pyotp"
distfiles="${PYPI_SITE}/p/pyotp/pyotp-${version}.tar.gz"
checksum=fc537e8acd985c5cbf51e11b7d53c42276fee017a73aec7c07380695671ca1a1
do_check() {
python2 -B setup.py test
python3 -B setup.py test
}
post_install() {
vlicense LICENSE
}
python3-pyotp_package() {
short_desc="${short_desc/Python2/Python3}"
archs=noarch
pycompile_module="pyotp"
depends="python3"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}