# Maintainer: Antoine Martin (ayakael) # Contributor: Antoine Martin (ayakael) _pyname=Flask-Limiter pkgname=py3-flask-limiter pkgver=3.3.0 pkgrel=0 arch="!armv7 noarch" pkgdesc="Flask-Limiter adds rate limiting to Flask applications." url="https://pypi.python.org/project/$_pyname" license="MIT" depends="python3" makedepends="py3-setuptools py3-wheel py3-pip" options="!check" # Missing py3-hiro checkdepends="py3-pytest py3-flask-restful py3-hiro" source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir"/$_pyname-$pkgver build() { python3 setup.py build } check() { pyver=$(python3 -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))") python3 setup.py install --prefix=/usr --root="$srcdir"/tmp_install --optimize=1 PYTHONPATH="$srcdir"/tmp_install/usr/lib/python$pyver/site-packages pytest || true } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 } sha512sums=" 9dc94a6177a512d13f934339212b93b52c601fc8bbf939b07dd6fc15c8646161d2746435a87f49bc412843311b1d3a57527206dc5b0a516ffff492dc3fe3607e py3-flask-limiter-3.3.0.tar.gz "