[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Tue Nov 3 05:13:43 UTC 2015


    Date: Tuesday, November 3, 2015 @ 06:13:43
  Author: fyan
Revision: 145713

addpkg: python-acme 0.0.0.dev20151030-1

Added:
  python-acme/
  python-acme/repos/
  python-acme/trunk/
  python-acme/trunk/PKGBUILD

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

Added: python-acme/trunk/PKGBUILD
===================================================================
--- python-acme/trunk/PKGBUILD	                        (rev 0)
+++ python-acme/trunk/PKGBUILD	2015-11-03 05:13:43 UTC (rev 145713)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-acme
+pkgname=('python-acme' 'python2-acme')
+pkgver=0.0.0.dev20151030
+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.python.org/packages/source/a/acme/acme-$pkgver.tar.gz")
+sha512sums=('SKIP')
+
+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}
+}


Property changes on: python-acme/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list