1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/community/py3-acme/APKBUILD
2023-02-20 12:48:05 +01:00

47 lines
1.1 KiB
Text

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-acme
_pkgname=${pkgname/py3-//}
pkgver=2.3.0
pkgrel=0
pkgdesc="ACME protocol implementation in Python"
url="https://github.com/certbot/certbot"
arch="noarch"
license="Apache-2.0"
depends="
py3-cryptography
py3-josepy
py3-openssl
py3-pyrfc3339
py3-requests
py3-setuptools
py3-tz
"
makedepends="
py3-gpep517
py3-wheel
"
checkdepends="py3-pytest-xdist py3-pytest-runner"
source="$pkgname-$pkgver.tar.gz::https://github.com/certbot/certbot/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/certbot-$pkgver/$_pkgname"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages testenv
testenv/bin/python3 -m installer dist/*.whl
testenv/bin/python3 -m pytest -n auto
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
5f52d9b0dd390fc696389a94ff897d803ee062feca50bb66972e197dcd79b0096b337cece2798557c3878903577171fd9afe1f18a4a2131ad7e6a62d0d945ebb py3-acme-2.3.0.tar.gz
"