aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-hcloud/APKBUILD
blob: 60ce43582efe7b4d3287eee3b919ff979ee897d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-hcloud
pkgver=1.16.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-setuptools"
checkdepends="py3-pytest py3-mock"
source="https://files.pythonhosted.org/packages/source/h/hcloud/hcloud-$pkgver.tar.gz"
builddir="$srcdir/hcloud-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

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

sha512sums="
de98582691637c1e6978c9056a4765cd0046462b0f38777564a71024b93b5265da40373cb4dc19161397bb2896391610744d5c92f4e3d1a0be88e88a3512c02f  hcloud-1.16.0.tar.gz
"