fossdd 9bf0af8884 community/py3-josepy: downgrade to 1.14.0
certbot is incompatible with josepy-2.0

Link: https://github.com/certbot/certbot/issues/10185
Fixes: https://gitlab.alpinelinux.org/alpine/aports/-/issues/16932

This reverts commit 16fabf808ee3f012b6b4d2db9b36307a8e875a2e.
2025-03-07 09:05:00 +00:00

52 lines
1.2 KiB
Plaintext

# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=certbot
pkgver=3.2.0
pkgrel=1
pkgdesc="An ACME client that can update Apache/Nginx configurations"
url="https://github.com/certbot/certbot"
arch="noarch"
license="Apache-2.0"
depends="
py3-acme
py3-configargparse
py3-configobj
py3-cryptography
py3-distro
py3-distutils-extra
py3-josepy<2
py3-parsedatetime
py3-pyrfc3339
py3-setuptools
py3-tz
"
makedepends="
py3-gpep517
py3-wheel
"
checkdepends="py3-augeas py3-pytest-xdist"
subpackages="$pkgname-pyc"
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 -p no:warnings
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
8fc3753dcdc954e143da31a0308269b99abadcdefc008c54c2cabac14a3bf99e757f1007349806a7dabf4a8fe19fd3a365ddea85c1dbeb3b453ae91503ea2288 certbot-3.2.0.tar.gz
"