blob: 616e1caf19c9f0301020e1549d084c91cfed451b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=py3-django-js-asset
_pkgname=django-js-asset
pkgver=1.2.2
pkgrel=4
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-setuptools"
checkdepends="py3-coverage"
source="$pkgname-$pkgver.tar.gz::https://github.com/matthiask/$_pkgname/archive/$pkgver.tar.gz
Adapt-the-test-suite-to-changes-in-Django.patch
"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-django-js-asset" # Backwards compatibility
provides="py-django-js-asset=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py --quiet build
}
check() {
python3 tests/manage.py test -v 2 testapp
}
package() {
python3 setup.py --quiet install --skip-build --root="$pkgdir"
}
sha512sums="ad2c51399da9b5d75305c0fa257cc75496df3f6704a827a0d297a4d762712039c3ebd921afbe6e10672626f1badd8637728292dd700ba41c4192c95ec73095a9 py3-django-js-asset-1.2.2.tar.gz
2319e16762981fa0b5e6fa09be470ef3d2f7e5b39e383945574859b6ca1e216a5b3f45d9624f595717d9e501b79e9be0985cafc10328f84d1fed7a590de7a893 Adapt-the-test-suite-to-changes-in-Django.patch"
|