mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=py3-hcloud
|
|
pkgver=1.18.2
|
|
pkgrel=1
|
|
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="
|
|
da71f5590514d45b630662b1bedf7907e5ba33a48617131615377724e1377a2776f979c00e50521c513052b4f540224439e048e2e1215973b76c55a8a20e1a45 py3-hcloud-1.18.2.tar.gz
|
|
fc5f55b8cdfef6705e6a28ec62fc9df80b63f5522589546102a66402f2391ea5de81845040cecbc49bc974576c7e843883ee06de61743b07489deff345363d72 no-universal.patch
|
|
"
|