Date: Saturday, April 8, 2023 @ 12:26:32
Author: felixonmars
Revision: 1442319
archrelease: copy trunk to community-staging-any
Added:
python-acme/repos/community-staging-any/
python-acme/repos/community-staging-any/PKGBUILD
(from rev 1442317, python-acme/trunk/PKGBUILD)
----------+
PKGBUILD | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
Copied: python-acme/repos/community-staging-any/PKGBUILD (from rev 1442317,
python-acme/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-08 12:26:32 UTC (rev 1442319)
@@ -0,0 +1,64 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Felix Yan <[email protected]>
+# Contributor: Gordian Edenhofer <gordian.edenhofer[at]yahoo[dot]de>
+
+pkgname=python-acme
+pkgver=2.3.0
+pkgrel=2
+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=(
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
+ 'python-setuptools'
+ 'python-sphinx'
+ 'python-sphinx_rtd_theme'
+)
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/a/acme/acme-$pkgver.tar.gz")
+sha512sums=('4e0af80c5c5e08439b652f470d207ff720a2f9bf10739bdb369e44b50fbf6adc0c02eb17f063816f45a72ea1b85361186469b135726cf56504a9025364c27f8f')
+b2sums=('ce81ea41937b635004f48030e3c3bb55d35cb680bc7e804d50635ee3a9406122269c4904ea94f3a1beae8d340293298fd90b3c4baf061e51cd4996a30430e9cc')
+
+prepare() {
+ cd "acme-$pkgver"
+
+ # nuke setuptools from orbit ^W install_requires
+ sed \
+ -e '/setuptools>=/d' \
+ -i setup.py
+}
+
+build() {
+ cd "acme-$pkgver"
+
+ python -m build --wheel --no-isolation
+
+ # create man page
+ make -C docs man
+}
+
+check() {
+ cd "acme-$pkgver"
+
+ python -m pytest
+}
+
+package() {
+ cd "acme-$pkgver"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # man pages
+ install -vDm644 -t "$pkgdir/usr/share/man/man1" docs/_build/man/*.1
+}