# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=certbot-nginx pkgver=2.6.0 pkgrel=0 pkgdesc="Nginx plugin for Certbot client" url="https://github.com/certbot/certbot" arch="noarch" license="Apache-2.0" depends=" certbot py3-acme py3-openssl py3-parsing py3-setuptools " makedepends=" py3-gpep517 py3-wheel " checkdepends="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=" d694156886484511f5a38fb5e40f98b2e2dbe4bc5110c95b2084ec03b39cb0eb9bbc623c7bca4a81054e980c8dbac752949042391813298a27be7e70410882e3 certbot-nginx-2.6.0.tar.gz "