# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-zabbix
_pkgname="zabbix-api"
pkgver=0.5.6
pkgrel=1
pkgdesc="Python3 Zabbix API"
url="https://github.com/gescheit/scripts"
arch="all"
license="LGPL 2.1"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=build/lib python3 -c "from zabbix_api import ZabbixAPI"
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
4076c1259ffcc97bf7c0b4cb2006c9f4b6852922afac134647274261cade0d0d66950cf4a498b341fe3af2bed402c9887f16295324448e29a8e2461218d23240  zabbix-api-0.5.6.tar.gz
"
