aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-netjsonconfig/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-netjsonconfig/APKBUILD')
-rw-r--r--community/py3-netjsonconfig/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/py3-netjsonconfig/APKBUILD b/community/py3-netjsonconfig/APKBUILD
new file mode 100644
index 00000000000..152e5402479
--- /dev/null
+++ b/community/py3-netjsonconfig/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Alex Denes <caskd@redxen.eu>
+# Maintainer: Alex Denes <caskd@redxen.eu>
+pkgname=py3-netjsonconfig
+_pkgname=netjsonconfig
+pkgver=1.0.2
+pkgrel=3
+pkgdesc="Python library that converts NetJSON DeviceConfiguration objects into real router configurations"
+url="http://netjsonconfig.openwisp.org/"
+arch="noarch"
+license="GPL-3.0-only"
+depends="
+ py3-jinja2
+ py3-jsonschema
+ py3-setuptools
+"
+checkdepends="
+ py3-nose>=2
+"
+makedepends="py3-setuptools_scm"
+subpackages="$pkgname-pyc"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+options="!check" # requires nose > 2.0
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py test
+}
+
+package() {
+ python3 setup.py install --root "$pkgdir"
+}
+
+sha512sums="
+97108943464a4b650bb462b46904bbcab030a3c6b23ab2e2678446b65f4527935b2d23057c4fe5a5d40b976f3b650bc0f54b1aa175cd515bf67f5a5ed2a13449 netjsonconfig-1.0.2.tar.gz
+"