ayaports/testing/py3-django-redis/APKBUILD

48 lines
1 KiB
Text
Raw Permalink Normal View History

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=django-redis
pkgname="py3-$_pyname"
pkgver=5.3.0
pkgrel=0
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-wheel
py3-gpep517
py3-installer
py3-redis
"
checkdepends="
py3-pytest
"
options="!check" # Missing depends for test
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH="$PYTHONPATH/dist" pytest -v
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
2867d405b69400355576eb3c052b4245844d56304979f09750251f8a2cf35ce704ebcdb6c80e6280fbfe24acfb237a3428f68081b6ada11ffc78257263703d7e py3-django-redis-5.3.0.tar.gz
"