ayaports/user/py3-django-redis/APKBUILD
2023-01-12 18:48:03 +00:00

28 lines
914 B
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=django-redis
pkgname="py3-$_pyname"
pkgver=5.2.0
pkgrel=1
arch="noarch"
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() {
python3 setup.py install --root="${pkgdir}" -O1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
65d3dc6b1d72c8b90908cf368cb66ac2eb74bdd32d0b42c8a5288b4448bd7444b21320251262627bc950eaf0d1a1ef0c3014761b690122bea9e5e20f744dd433 py3-django-redis-5.2.0.tar.gz
"