# Template file for 'python-WTForms'
pkgname=python-WTForms
version=2.2.1
revision=2
archs=noarch
wrksrc="WTForms-${version}"
build_style=python-module
pycompile_module="wtforms"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Forms validation and rendering library for Python2"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="BSD-3-Clause"
homepage="http://wtforms.simplecodes.com/"
#changelog="https://raw.githubusercontent.com/wtforms/wtforms/master/CHANGES.rst"
distfiles="${PYPI_SITE}/W/WTForms/WTForms-${version}.tar.gz"
checksum=0cdbac3e7f6878086c334aa25dc5a33869a3954e9d1e015130d65a69309b3b61

post_install() {
	vlicense LICENSE.rst LICENSE
}

python3-WTForms_package() {
	archs=noarch
	depends="python3"
	pycompile_module="wtforms"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE.rst LICENSE
	}
}
