ayaports/user/py3-django-redis/APKBUILD

29 lines
919 B
Text
Raw Normal View History

2022-12-27 20:40:33 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=django-redis
pkgname="py3-$_pyname"
pkgver=5.2.0
2023-03-31 20:26:25 +00:00
pkgrel=2
2023-05-07 22:41:06 +00:00
arch="!armv7 noarch"
2022-12-27 20:40:33 +00:00
pkgdesc="Full featured redis cache backend for Django."
url="https://pypi.python.org/project/$_pyname"
license="BSD-3-CLAUSE"
depends="py3-django"
makedepends="py3-setuptools py3-redis"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
check() {
PYTHONPATH="$PWD/src" pytest || true
}
package() {
2023-03-31 20:26:25 +00:00
python3 setup.py install --root="$pkgdir" -O1
2022-12-27 20:40:33 +00:00
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
65d3dc6b1d72c8b90908cf368cb66ac2eb74bdd32d0b42c8a5288b4448bd7444b21320251262627bc950eaf0d1a1ef0c3014761b690122bea9e5e20f744dd433 py3-django-redis-5.2.0.tar.gz
"