diff options
Diffstat (limited to 'testing/py3-openwisp-utils/APKBUILD')
-rw-r--r-- | testing/py3-openwisp-utils/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/py3-openwisp-utils/APKBUILD b/testing/py3-openwisp-utils/APKBUILD new file mode 100644 index 00000000000..8e992c52431 --- /dev/null +++ b/testing/py3-openwisp-utils/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Alex Denes <caskd@redxen.eu> +# Maintainer: Alex Denes <caskd@redxen.eu> +_pkgname=openwisp-utils +pkgname="py3-$_pkgname" +pkgver=1.0.4 +pkgrel=2 +pkgdesc="Python and Django utilities shared between different openwisp modules" +url="https://github.com/openwisp/openwisp-utils" +arch="noarch" +license="BSD-3-Clause" +depends=" + py3-django-compress-staticfiles + py3-django-filter + py3-django-model-utils + py3-django-rest-framework + py3-drf-yasg + py3-swapper + python3 +" +checkdepends=" + py3-openwisp-controller +" +makedepends="py3-setuptools_scm" +subpackages="$pkgname-pyc" +source="$pkgname-$pkgver.tar.gz::https://github.com/openwisp/openwisp-utils/archive/refs/tags/$pkgver.tar.gz" +options="!check" # circular dependency caused by testing suite (controller <=> utils) +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + python3 setup.py build +} + +check() { + python3 runtests.py +} + +package() { + python3 setup.py install --root "$pkgdir" +} + +sha512sums=" +3ea32fc87f789a94221154ab17893b04d59f58cc542b6315117895195c019356a8a41495a77f28c382425e246c536c78ad2e5196fd01ed3b5e4d6923879be1ab py3-openwisp-utils-1.0.4.tar.gz +" |