aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-django-widget-tweaks/APKBUILD
blob: 4e4e13fc0cceea4ee551f6ce1b7e9a2978cf6018 (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
# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
pkgname=py3-django-widget-tweaks
pkgver=1.4.12
pkgrel=3
pkgdesc="Tweak the form field rendering in templates, not in python-level form definitions"
url="https://github.com/jazzband/django-widget-tweaks"
arch="noarch"
license="MIT"
depends="py3-django"
makedepends="py3-setuptools py3-setuptools_scm"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/d/django-widget-tweaks/django-widget-tweaks-$pkgver.tar.gz"
builddir="$srcdir/django-widget-tweaks-$pkgver"
replaces="py-django-widget-tweaks" # Backwards compatibility
provides="py-django-widget-tweaks=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=. django-admin test --settings tests.settings
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
201944c8ddffd70096a8d72e5c21e3d3601ffe94579b673f4d59922b6a3025f79eb42fca7a28183055bb5d743fab61d835a3bf72c6fe088194523607863e5935  django-widget-tweaks-1.4.12.tar.gz
"