# Contributor: Fabian Affolter # Maintainer: Eivind Uggedal pkgname=py-wtforms _pkgname=WTForms pkgver=2.0 pkgrel=0 pkgdesc="A flexible forms validation and rendering Python library" url="http://wtforms.simplecodes.com/" arch="noarch" license="BSD" depends="python" depends_dev="" makedepends="python-dev py-setuptools" install="" subpackages="" source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip" _builddir="$srcdir"/$_pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } md5sums="e235f22bf5bbbca8dd1072c05fd18137 WTForms-2.0.zip" sha256sums="3c8d23957b1f4e9e625dc2e278b90b72445e081bff80231d472977daae386e47 WTForms-2.0.zip" sha512sums="d5f6bbf98ad3171168307a0d9e2e72bdf47ff26c9a82599295cbdbb29836b649f7ddd036b2f9f9373a1b61b81629448f8aa00f34754b35db42093cb2d00f855a WTForms-2.0.zip"