mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 21:04:46 +02:00
45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
|
|
pkgname=py3-django-js-asset
|
|
_pkgname=django-js-asset
|
|
pkgver=3.1.2
|
|
pkgrel=0
|
|
pkgdesc="script tag with additional attributes for django.forms.Media"
|
|
url="https://github.com/matthiask/django-js-asset"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="py3-django"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-hatchling
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest py3-coverage"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/matthiask/$_pkgname/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
options="!check" # need more setup
|
|
|
|
replaces="py-django-js-asset" # Backwards compatibility
|
|
provides="py-django-js-asset=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
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="
|
|
77252d3b993a1872cac4b30e01ca7bbaddbae611233a2a4b7d18bba026d49be0fd2f7414a8bd8e6370fac7a2e11e3a38989184a07efe868e2f9d7a20afda5d0d py3-django-js-asset-3.1.2.tar.gz
|
|
"
|