# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer:
_pkgname=jsonfield
pkgname="py3-$_pkgname"
pkgver=3.1.0
pkgrel=5
pkgdesc="Reusable Django field that allows you to store validated JSON in your model"
url="https://github.com/rpkilby/jsonfield/"
arch="noarch"
license="MIT"
depends="
	py3-django
"
makedepends="py3-setuptools_scm"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
options="!check" # test suite gives ImproperlyConfigured
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m django test
}

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

sha512sums="
8d8766f0f23b641d07a93aa38a91fb76e92f34f982123183e3e7abbf210c8a3f425584580cb9674b1c9f1a1edb884233fadb2b1829f9f1ecb2da397defe27e0b  jsonfield-3.1.0.tar.gz
"
