void-packages/srcpkgs/python-Flask-Login/template

39 lines
1.0 KiB
Bash

# Template file for 'python-Flask-Login'
pkgname=python-Flask-Login
version=0.4.0
revision=2
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="flask_login.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-Flask"
short_desc="User session management for Flask (Python2)"
maintainer="pulux <pulux@pf4sh.de>"
license="MIT"
homepage="https://github.com/maxcountryman/flask-login"
distfiles="${PYPI_SITE}/F/Flask-Login/Flask-Login-${version}.tar.gz"
checksum=d25e356b14a59f52da0ab30c31c2ad285fa23a840f0f6971df7ed247c77082a7
post_install() {
vlicense LICENSE
}
python3-Flask-Login_package() {
noarch=yes
depends="python3-Flask"
pycompile_module="flask_login.py"
replaces="python3.4-Flask-Login>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-Flask-Login_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-Flask-Login>=${version}_${revision}"
}