aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptrcnull <git@ptrcnull.me>2022-07-31 14:31:58 +0200
committerFrancesco Colista <fcolista@alpinelinux.org>2022-08-14 15:50:24 +0200
commit8d80a5b5349488ac88570d3ff3b9bc7d1f9b8664 (patch)
tree52e86a5e7ea952100ab855833c1744db6029e64e
parent8b08856bfb5e00e68a41c3df4f62f18c6cb0f5f6 (diff)
downloadaports-8d80a5b5349488ac88570d3ff3b9bc7d1f9b8664.tar.gz
aports-8d80a5b5349488ac88570d3ff3b9bc7d1f9b8664.tar.bz2
aports-8d80a5b5349488ac88570d3ff3b9bc7d1f9b8664.tar.xz
community/py3-zabbix: add import check
-rw-r--r--community/py3-zabbix/APKBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/community/py3-zabbix/APKBUILD b/community/py3-zabbix/APKBUILD
index 32d4f56775..14a7986fb1 100644
--- a/community/py3-zabbix/APKBUILD
+++ b/community/py3-zabbix/APKBUILD
@@ -3,7 +3,7 @@
pkgname=py3-zabbix
_pkgname="zabbix-api"
pkgver=0.5.4
-pkgrel=3
+pkgrel=4
pkgdesc="Python3 Zabbix API"
url="https://github.com/gescheit/scripts"
arch="all"
@@ -17,11 +17,13 @@ build() {
}
check() {
- python3 setup.py check
+ PYTHONPATH=build/lib python3 -c "from zabbix_api import ZabbixAPI"
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="d643f5f3760bb55df8d5b0416581f6fa2e82b7bcaba75d6be1386354a23a1d3dcc6cca10b97ba24ceca10ecd0c7a4a2646963549417f09beb441a90ef20e8e4c zabbix-api-0.5.4.tar.gz"
+sha512sums="
+d643f5f3760bb55df8d5b0416581f6fa2e82b7bcaba75d6be1386354a23a1d3dcc6cca10b97ba24ceca10ecd0c7a4a2646963549417f09beb441a90ef20e8e4c zabbix-api-0.5.4.tar.gz
+"