mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 22:07:19 +02:00
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-django-js-reverse
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=django-js-reverse
|
|
pkgver=0.10.2
|
|
pkgrel=1
|
|
pkgdesc="Javascript url handling for Django that doesn't hurt."
|
|
url="https://pypi.python.org/project/django-js-reverse"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-django"
|
|
checkdepends="py3-coverage"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/vintasoftware/django-js-reverse/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
subpackages="$pkgname-pyc"
|
|
options="!check" # Requires py3-js2py
|
|
|
|
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
|
|
DJANGO_SETTINGS_MODULE=tests.settings "$builddir"/.testenv/bin/python3 -m coverage run -p django_js_reverse/tests/unit_tests.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
2f9d41894250138ee6b8a1faae78090f4c4953ea3dd2887fb373e3b1ea74d52c15f060da9771f026fa11089d4814638dae38877715acc592083eacd8454d9760 py3-django-js-reverse-0.10.2.tar.gz
|
|
"
|