ayaports/backports/py3-limits/APKBUILD

51 lines
1.4 KiB
Text
Raw Normal View History

2023-11-27 14:22:10 +00:00
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
pkgname=py3-limits
pkgver=3.12.0
2023-11-27 14:22:10 +00:00
pkgrel=0
pkgdesc="Rate limiting using various strategies and storage backends such as redis & memcached"
url="https://github.com/alisaifee/limits"
arch="noarch"
license="MIT"
depends="
py3-deprecated
python3
"
makedepends="py3-setuptools"
checkdepends="
py3-flaky
py3-mongo
py3-pytest
py3-pytest-asyncio
py3-pytest-benchmark
py3-pytest-cov
py3-redis
"
subpackages="$pkgname-pyc"
options="!check" # most tests are integration with db connections, assume all connectors installed
source="
https://github.com/alisaifee/limits/archive/refs/tags/$pkgver/limits-$pkgver.tar.gz
our-std-is-good-enough.patch
"
builddir="$srcdir/limits-$pkgver"
build() {
python3 setup.py build
}
check() {
pytest \
-m 'not benchmark and not etcd and not integration and not memcached' \
-k 'not aio and not Storage and not strategy' -v
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
2803dc26b18015e177342ed89e879f4dd680908579c99f9069d695edfa2beb3008b5bc47454ea2120a425bbcbc8a08928ab93a3058b33e11a2ae29431dfd9cd1 limits-3.12.0.tar.gz
0364d51f9f879b95c6a4a3c9e9fd3d7d1e15ea214c50ae98cd36826b8c0b2d903cf1128741ac83738e305a207dae8955a0b2c8679484d2d6643e334595bdb1d7 our-std-is-good-enough.patch
2023-11-27 14:22:10 +00:00
"