diff options
Diffstat (limited to 'community')
-rw-r--r-- | community/py3-jsonfield/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/community/py3-jsonfield/APKBUILD b/community/py3-jsonfield/APKBUILD new file mode 100644 index 0000000000..e18596d2ad --- /dev/null +++ b/community/py3-jsonfield/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Alex Denes <caskd@redxen.eu> +# Maintainer: Alex Denes <caskd@redxen.eu> +_pkgname=jsonfield +pkgname="py3-$_pkgname" +pkgver=3.1.0 +pkgrel=0 +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" +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 +" |