[arch-commits] Commit in pyopenssl/repos (testing-any testing-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Nov 22 11:17:19 UTC 2017
Date: Wednesday, November 22, 2017 @ 11:17:19
Author: felixonmars
Revision: 310561
archrelease: copy trunk to testing-any
Added:
pyopenssl/repos/testing-any/
pyopenssl/repos/testing-any/PKGBUILD
(from rev 310560, pyopenssl/trunk/PKGBUILD)
----------+
PKGBUILD | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
Copied: pyopenssl/repos/testing-any/PKGBUILD (from rev 310560, pyopenssl/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2017-11-22 11:17:19 UTC (rev 310561)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer : Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgbase=pyopenssl
+pkgname=('python-pyopenssl' 'python2-pyopenssl')
+pkgver=17.4.0
+pkgrel=1
+arch=('any')
+url="http://pypi.python.org/pypi/pyOpenSSL"
+license=('LGPL2.1')
+makedepends=('openssl' 'python-setuptools' 'python2-setuptools' 'python-cryptography'
+ 'python2-cryptography')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pretend' 'python2-pretend'
+ 'python-flaky' 'python2-flaky')
+source=("https://pypi.io/packages/source/p/pyOpenSSL/pyOpenSSL-$pkgver.tar.gz")
+sha512sums=('c3c791b15f2245d3c1381f84471f9e1b07b4a01c318a5a4012ec70193ba055fe948ba150f9c88d2dabe30b37f2025fe26ffb95c01682ca656d561014d41cf965')
+
+prepare() {
+ cp -a pyOpenSSL-$pkgver{,-py2}
+
+ export LC_CTYPE=en_US.UTF-8
+}
+
+build () {
+ cd "$srcdir"/pyOpenSSL-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pyOpenSSL-$pkgver-py2
+ python2 setup.py build
+}
+
+check () {
+ (
+ cd "$srcdir"/pyOpenSSL-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/pyOpenSSL-$pkgver-py2
+ python2 setup.py pytest
+ ) || warning "Tests failed due to missing SSLv3_METHOD"
+}
+
+package_python-pyopenssl(){
+ pkgdesc="Python3 wrapper module around the OpenSSL library"
+ depends=('openssl' 'python-six' 'python-cryptography')
+ replaces=('pyopenssl')
+ provides=('pyopenssl')
+ conflicts=('pyopenssl')
+
+ cd "$srcdir"/pyOpenSSL-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pyopenssl(){
+ pkgdesc="Python2 wrapper module around the OpenSSL library"
+ depends=('openssl' 'python2-six' 'python2-cryptography')
+
+ cd "$srcdir"/pyOpenSSL-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list