# Automatically generated by apkbuild-pypi, template 3
# Contributor: Niklas Meyer <derlinkman@gmail.com>
# Maintainer: Niklas Meyer <derlinkman@gmail.com>
pkgname=acme-tiny
pkgver=5.0.1
pkgrel=2
pkgdesc="A tiny script to issue and renew TLS certs from Let's Encrypt"
url="https://pypi.org/project/acme-tiny/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-setuptools_scm
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/a/acme-tiny/acme-tiny-$pkgver.tar.gz"
options="!check" # tests are broken so we skip them

build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
12940426b0fd9cce333ae400161ba371f2c05fdcbb7ac5931079e9b420a5504c89b35613678c9527333647a7ca2f5cfd4eb238ca7b762c5488b9dd98fb3e4731  acme-tiny-5.0.1.tar.gz
"
