diff --git a/user/py3-flask-limiter/APKBUILD b/user/py3-flask-limiter/APKBUILD new file mode 100644 index 0000000..57f23b6 --- /dev/null +++ b/user/py3-flask-limiter/APKBUILD @@ -0,0 +1,34 @@ +# Maintainer: Antoine Martin (ayakael) +# Contributor: Antoine Martin (ayakael) + +_pyname=Flask-Limiter +pkgname=py3-flask-limiter +pkgver=3.3.0 +pkgrel=0 +arch="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 +"