1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/community/py3-netjsonconfig/APKBUILD

37 lines
933 B
Text

# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=py3-netjsonconfig
_pkgname=netjsonconfig
pkgver=1.0.2
pkgrel=0
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
"
checkdepends="
py3-nose>=2
"
makedepends="py3-setuptools_scm"
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
"