# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
pkgname=py3-django-appconf
_pkgname=django-appconf
pkgver=1.0.6
pkgrel=1
pkgdesc="Packaged application configuation helper for Django"
url="https://django-appconf.readthedocs.io/en/latest/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-django"
makedepends="py3-setuptools"
options="!check"  # No test suite available
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/d/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-django-appconf" # Backwards compatibility
provides="py-django-appconf=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

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

sha512sums="
892f9c57d19ebade4ead39c0e6b27ac0d6ef7b570e671b19a2e5688b4ab27ef61d51e8a9a9c8b545bd7cb75b8840e592b351309662632c20b46ce0539bd1341b  django-appconf-1.0.6.tar.gz
"
