mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-19 17:25:17 +03:00
40 lines
1 KiB
Text
40 lines
1 KiB
Text
# Contributor: Celeste <cielesti@protonmail.com>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
pkgname=py3-django-cache-url
|
|
pkgver=3.4.4
|
|
pkgrel=0
|
|
pkgdesc="Use Cache URLs in your Django Application"
|
|
url="https://pypi.org/project/django-cache-url/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-django"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest-cov"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/epicserve/django-cache-url/archive/v$pkgver/py3-django-cache-url-$pkgver.tar.gz"
|
|
builddir="$srcdir/django-cache-url-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
745fddec8546c4ad4b70d7a039e0954f1c99cb91766a10185b29804cd69560a3dd64f90a85bb1a9ae029d34038944b288b4c497ad15492791121ea9c61fd6ae5 py3-django-cache-url-3.4.4.tar.gz
|
|
"
|