51 lines
1.2 KiB
Text
51 lines
1.2 KiB
Text
|
# Contributor: Lauren N. Liberda <lauren@selfisekai.rocks>
|
||
|
# Maintainer: Lauren N. Liberda <lauren@selfisekai.rocks>
|
||
|
pkgname=py3-flask-limiter
|
||
|
pkgver=3.3.1
|
||
|
pkgrel=0
|
||
|
pkgdesc="Rate Limiting extension for Flask"
|
||
|
url="https://github.com/alisaifee/flask-limiter"
|
||
|
arch="noarch"
|
||
|
license="MIT"
|
||
|
depends="
|
||
|
py3-flask
|
||
|
py3-limits
|
||
|
py3-ordered-set
|
||
|
py3-rich
|
||
|
python3
|
||
|
"
|
||
|
makedepends="py3-setuptools"
|
||
|
checkdepends="
|
||
|
py3-flask-restful
|
||
|
py3-flask-restx
|
||
|
py3-limits-mongodb
|
||
|
py3-limits-redis
|
||
|
py3-pytest
|
||
|
py3-pytest-cov
|
||
|
"
|
||
|
options="!check" # tests depend on unpackaged modules
|
||
|
subpackages="$pkgname-pyc"
|
||
|
source="
|
||
|
https://github.com/alisaifee/flask-limiter/archive/refs/tags/$pkgver/flask-limiter-$pkgver.tar.gz
|
||
|
|
||
|
our-std-is-good-enough.patch
|
||
|
"
|
||
|
builddir="$srcdir/flask-limiter-$pkgver"
|
||
|
|
||
|
build() {
|
||
|
python3 setup.py build
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
pytest
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||
|
}
|
||
|
|
||
|
sha512sums="
|
||
|
3de2e4a3d94fe2788c0896cb2d42ec04307d6ed929985c636810d6b6fd2633419e8b8832de9541e44877cab354283cdc03912ae9cc15f124297ad13bde14e781 flask-limiter-3.3.1.tar.gz
|
||
|
1b90e9134076cda249695d5ea741db9d205a2ae452c7d6edfe01eb37a221ce6f64b0e8ddcdbbee9b0e0fb16a28e5eabf14f1c1e41e965c7e3b93ea4f42caf553 our-std-is-good-enough.patch
|
||
|
"
|