# Maintainer: George Rawlinson # Contributor: Felix Yan # Contributor: Gordian Edenhofer pkgname=python-acme pkgver=2.6.0 pkgrel=1 pkgdesc='ACME protocol implementation in Python' arch=('any') license=('Apache') url='https://github.com/certbot/certbot' depends=( 'python-cryptography' 'python-josepy' 'python-pyopenssl' 'python-pyrfc3339' 'python-pytz' 'python-requests' ) makedepends=( 'git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools' 'python-sphinx' 'python-sphinx_rtd_theme' ) checkdepends=('python-pytest') # git repository is used because certbot is a huge monorepo and it's easier to # share the entire repository across all certbot related packages than a few # hundred tarballs. _commit='013621d04ed26377cf6616448b21a4c050683719' _repo="github.com-certbot-certbot" source=("$_repo::git+https://github.com/certbot/certbot#commit=$_commit") b2sums=('SKIP') pkgver() { cd "$_repo" git describe --tags | sed 's/^v//' } prepare() { cd "$_repo/acme" # nuke setuptools from orbit ^W install_requires sed \ -e '/setuptools>=/d' \ -i setup.py } build() { cd "$_repo/acme" python -m build --wheel --no-isolation # create man page make -C docs man } check() { cd "$_repo/acme" python -m pytest } package() { cd "$_repo/acme" python -m installer --destdir="$pkgdir" dist/*.whl # man pages install -vDm644 -t "$pkgdir/usr/share/man/man1" docs/_build/man/*.1 }