# Maintainer: George Rawlinson # Contributor: Felix Yan pkgname=certbot-dns-rfc2136 pkgver=1.28.0 pkgrel=1 pkgdesc="RFC2136 DNS Authenticator plugin for Certbot" arch=('any') license=('Apache') url="https://pypi.python.org/pypi/$pkgname" depends=( 'certbot' 'python-acme' 'python-dnspython' ) makedepends=( 'python-build' 'python-wheel' 'python-installer' ) checkdepends=('python-pytest') source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc}) validpgpkeys=('148C30F6F7E429337A72D992B00B9CC82D7ADF2C' '1B41B758F9A78C7F444C20FA3E5B4152E3ADB1FD' 'A2CFB51FA275A7286234E7B24D17C995CD9775F2' '86379B4F0AF371B50CD9E5FF3402831161D1D280' '20F201346BF8F3F455A73F9A780CC99432A28621' 'F2871B4152AE13C49519111F447BF683AA3B26C3') sha512sums=('94e230a3c1f6cc8e91792bd6f555f0a623f3d3d6cf2f88b555df44d2df95a430d9480d873b42528c89c11c1e2fd8325f34a71111cd06e6ccb553a15724801e28' 'SKIP') b2sums=('b38f089972c0e20037c343fe989aefcad6a84a71ec0c242e5c5c05cd141589f65790e69a4a3b9870283697a5f5596eb5efc4683013d1509d433f50a7af3dcff5' 'SKIP') prepare() { cd "$pkgname-$pkgver" # nuke setuptools from orbit ^W install_requires sed \ -e '/setuptools>=/d' \ -i setup.py } build() { cd "$pkgname-$pkgver" python -m build --wheel --no-isolation } check() { cd "$pkgname-$pkgver" python -m pytest } package() { cd "$pkgname-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl }