user/py3-django-js-reverse: new aport

This commit is contained in:
Antoine Martin 2024-01-04 20:59:06 -05:00
parent 32b826a565
commit c4098d2bdb

View file

@ -0,0 +1,37 @@
# 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=0
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="python3-dev"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/d/django-js-reverse/django-js-reverse-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
subpackages="$pkgname-pyc"
prepare() {
default_prepare
touch $builddir/CHANGELOG.rst # expects this file for build
}
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
12ce6754d20129820b17365e92dc1fd28d17f6f766fa9e4913b38ff08bbad3dc13dccc07a1c33902f327f81aa3eb37c32fce86218b9b4729de8d16f284d9b1fd py3-django-js-reverse-0.10.2.tar.gz
"