aports/testing/py3-proxmoxer/APKBUILD
2024-12-16 11:35:31 +00:00

43 lines
1.1 KiB
Text

# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-proxmoxer
pkgver=2.2.0
pkgrel=0
pkgdesc="Python wrapper for Proxmox API v2"
url="https://github.com/proxmoxer/proxmoxer"
arch="noarch"
license="MIT"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
checkdepends="
py3-mock
py3-openssh-wrapper
py3-paramiko
py3-pytest
py3-requests-toolbelt
py3-responses
py3-testfixtures
"
subpackages="$pkgname-pyc"
source="https://github.com/proxmoxer/proxmoxer/archive/$pkgver/proxmoxer-$pkgver.tar.gz"
builddir="$srcdir/proxmoxer-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="
2ce60db936c48ff841ca8d5577f1021ce1897dc1f1e96a0db49906dd9c18b9d7fa40b374eaf5e658680bf5b1c16485fd23e23fa1080e75d387f45ae59dc7d057 proxmoxer-2.2.0.tar.gz
"