# Contributor: Fabian Affolter # Contributor: # Maintainer: Drew DeVault pkgname=py3-flask-login _pkgname=flask-login pkgver=0.4.1 pkgrel=2 pkgdesc="Flask user session management" options="!check" # py3-blinker and py3-semantic-version are in testing url="https://github.com/maxcountryman/flask-login" arch="noarch" license="MIT" depends=" py3-flask " makedepends=" py3-setuptools " checkdepends=" py3-nose py3-mock py3-semantic-version py3-blinker " source="$pkgname-$pkgver.tar.gz::https://github.com/maxcountryman/flask-login/archive/$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-flask-login" # Backwards compatibility provides="py-flask-login=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { nosetests-$(python3 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))') } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="c87a2948ac37439ddd76f3f11584bdd5910cb00e96a7400343cf4dadc5a0f9bc84d40bdc068d2e8c05bd5a510046e18473e9ad71502c5039a5f05b371ce9bb4c py3-flask-login-0.4.1.tar.gz"