mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=certbot-nginx
|
|
pkgver=2.4.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"
|
|
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 -W ignore::DeprecationWarning
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
c307c97154935a3a01b468d6e91505caba6073b4c01071c87382bdc08c892094d95d75b047047d3221b7d8018a61ce974c0f4defbfdee00b136af920fd579108 certbot-nginx-2.4.0.tar.gz
|
|
"
|