mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=py3-hcloud
|
|
pkgver=1.19.0
|
|
pkgrel=0
|
|
pkgdesc="Official Hetzner Cloud Python library"
|
|
url="https://github.com/hetznercloud/hcloud-python"
|
|
license="MIT"
|
|
arch="noarch"
|
|
depends="python3 py3-requests py3-dateutil"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
source="https://github.com/hetznercloud/hcloud-python/archive/v$pkgver/py3-hcloud-$pkgver.tar.gz
|
|
no-universal.patch
|
|
"
|
|
builddir="$srcdir/hcloud-python-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/hcloud-$pkgver-py3-none-any.whl
|
|
}
|
|
|
|
sha512sums="
|
|
f3c7613f22f18048066ed32354b6b7fcfc7f1bfd0b8fc4c95add1824f9f403369dcc2a57bb7754d75e83ff6f6a4f9e65cafaa626fb39fce0a12cc1c9167f59fd py3-hcloud-1.19.0.tar.gz
|
|
fc5f55b8cdfef6705e6a28ec62fc9df80b63f5522589546102a66402f2391ea5de81845040cecbc49bc974576c7e843883ee06de61743b07489deff345363d72 no-universal.patch
|
|
"
|