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

Felix Yan fyan at archlinux.org
Fri Jun 3 03:12:52 UTC 2016


    Date: Friday, June 3, 2016 @ 05:12:52
  Author: fyan
Revision: 177785

archrelease: copy trunk to community-staging-any

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

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

Copied: python-acme/repos/community-staging-any/PKGBUILD (from rev 177784, python-acme/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-06-03 03:12:52 UTC (rev 177785)
@@ -0,0 +1,61 @@
+# $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.8.0
+pkgrel=1
+pkgdesc="ACME protocol implementation in Python"
+arch=('any')
+license=('Apache')
+url="https://github.com/letsencrypt/letsencrypt"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pyasn1' 'python2-pyasn1'
+             'python-cryptography' 'python2-cryptography' 'python-pyopenssl' 'python2-pyopenssl'
+             'python-ndg-httpsclient' 'python2-ndg-httpsclient' 'python-pyrfc3339'
+             'python2-pyrfc3339' 'python-pytz' 'python2-pytz' 'python-requests'
+             'python2-requests' 'python-six' 'python2-six' 'python-werkzeug' 'python2-werkzeug'
+             'python-mock' 'python2-mock')
+checkdepends=('python-nose' 'python2-nose')
+source=("https://pypi.io/packages/source/a/acme/acme-$pkgver.tar.gz")
+sha512sums=('d2446acca5df423010f1b312f5aa1de08eba88fb30b0a5b5b6deeb1756702e366975f3e480b37d2d9a3489587623a3b282d6f2490ed22771b8cd91050492efcb')
+
+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"
+  nosetests3
+
+  cd "$srcdir/acme-$pkgver-py2"
+  nosetests2
+}
+
+package_python-acme() {
+  depends=('python-setuptools' 'python-pyasn1' 'python-cryptography' 'python-pyopenssl'
+           'python-ndg-httpsclient' 'python-pyrfc3339' 'python-pytz' 'python-requests'
+           'python-six' 'python-werkzeug' 'python-mock')
+
+  cd acme-$pkgver
+  python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-acme() {
+  depends=('python2-setuptools' 'python2-pyasn1' 'python2-cryptography' 'python2-pyopenssl'
+           'python2-ndg-httpsclient' 'python2-pyrfc3339' 'python2-pytz' 'python2-requests'
+           'python2-six' 'python2-werkzeug' 'python2-mock')
+
+  cd acme-$pkgver-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+
+  mv "$pkgdir"/usr/bin/jws{,2}
+}



More information about the arch-commits mailing list