mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 10:15:12 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
30 lines
879 B
Text
30 lines
879 B
Text
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
pkgname=py3-pyzabbix
|
|
pkgver=1.2.1
|
|
pkgrel=1
|
|
pkgdesc="Library to interact with the Zabbix API"
|
|
url="https://github.com/lukecyca/pyzabbix"
|
|
arch="noarch"
|
|
license="LGPL-2.1-or-later"
|
|
depends="python3 py3-requests py3-semantic-version"
|
|
makedepends="python3-dev py3-setuptools"
|
|
checkdepends="py3-pytest py3-httpretty py3-requests-mock"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/lukecyca/pyzabbix/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/${pkgname#py3-}-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pytest -v tests
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
40f250e397c9c686ffd56e3bef6e76cfc9a1b7a6f5a6e01261d86d28a64ade804649d4906f45d0739e4470e7fb4571cbeaa69247d69dcf01f53a6531e6b494f4 py3-pyzabbix-1.2.1.tar.gz
|
|
"
|