[arch-commits] Commit in python-acme/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Jul 12 20:27:29 UTC 2018


    Date: Thursday, July 12, 2018 @ 20:27:29
  Author: felixonmars
Revision: 358177

archrelease: copy trunk to community-staging-any

Added:
  python-acme/repos/community-staging-any/
  python-acme/repos/community-staging-any/PKGBUILD
    (from rev 358176, python-acme/trunk/PKGBUILD)

----------+
 PKGBUILD |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

Copied: python-acme/repos/community-staging-any/PKGBUILD (from rev 358176, python-acme/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-12 20:27:29 UTC (rev 358177)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Gordian Edenhofer <gordian.edenhofer[at]yahoo[dot]de>
+
+pkgbase=python-acme
+pkgname=('python-acme' 'python2-acme')
+pkgver=0.26.0
+pkgrel=1
+pkgdesc="ACME protocol implementation in Python"
+arch=('any')
+license=('Apache')
+url="https://github.com/certbot/certbot"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pyopenssl' 'python2-pyopenssl'
+             'python-pyrfc3339' 'python2-pyrfc3339' 'python-pytz' 'python2-pytz' 'python-requests'
+             'python2-requests' 'python-six' 'python2-six' 'python-josepy' 'python2-josepy'
+             'python-mock' 'python2-mock' 'python-requests-toolbelt' 'python2-requests-toolbelt')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("https://pypi.io/packages/source/a/acme/acme-$pkgver.tar.gz")
+sha512sums=('071cb41b36c28ef027f7d3938f318685e4f7033a8dc0d21dc58c5003f9ce6e8e531bc725075efe11e897b25d7e0b714383aa5d433cbb7e889afa6f3612ae1e0f')
+
+prepare() {
+  cp -a acme-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/acme-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/acme-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/acme-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/acme-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-acme() {
+  depends=('python-setuptools' 'python-pyopenssl' 'python-pyrfc3339' 'python-pytz' 'python-requests'
+           'python-six' 'python-josepy' 'python-mock' 'python-requests-toolbelt')
+
+  cd acme-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-acme() {
+  depends=('python2-setuptools' 'python2-pyopenssl' 'python2-pyrfc3339' 'python2-pytz'
+           'python2-requests' 'python2-six' 'python2-josepy' 'python2-mock'
+           'python2-requests-toolbelt')
+
+  cd acme-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list