# Template file for 'python-Flask-WTF'
pkgname=python-Flask-WTF
version=0.12
revision=1
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="flask_wtf"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-Flask python-WTForms"
short_desc="Simple integration of Flask and WTForms (Python2)"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="BSD"
homepage="https://github.com/lepture/flask-wtf"
distfiles="${PYPI_SITE}/F/Flask-WTF/Flask-WTF-${version}.tar.gz"
checksum=bd99316c97ed1d1cb90b8f0c242c86420a891a6a2058f20717e424bf5b0bb80e

post_install() {
	vlicense LICENSE
}

python3.4-Flask-WTF_package() {
	noarch=yes
	depends="python3.4-Flask python3.4-WTForms"
	pycompile_version="3.4"
	pycompile_module="flask_wtf"
	short_desc="${short_desc/Python2/Python3.4}"
	pkg_install() {
		vmove usr/lib/python3.4
		vlicense LICENSE
	}
}
