[arch-commits] Commit in python-cryptography/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Mar 4 03:40:51 UTC 2017
Date: Saturday, March 4, 2017 @ 03:40:49
Author: felixonmars
Revision: 289957
upgpkg: python-cryptography 1.7.2-2
OpenSSL 1.1.0 Rebuild
Modified:
python-cryptography/trunk/PKGBUILD
----------+
PKGBUILD | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-03-04 02:34:03 UTC (rev 289956)
+++ PKGBUILD 2017-03-04 03:40:49 UTC (rev 289957)
@@ -4,7 +4,7 @@
pkgbase=python-cryptography
pkgname=('python-cryptography' 'python2-cryptography')
pkgver=1.7.2
-pkgrel=1
+pkgrel=2
pkgdesc="A package designed to expose cryptographic recipes and primitives to Python developers"
arch=('i686' 'x86_64')
license=('Apache')
@@ -16,10 +16,15 @@
"python2-cryptography-vectors=$pkgver" 'python-iso8601' 'python2-iso8601'
'python-pretend' 'python2-pretend' 'python-pyasn1-modules' 'python2-pyasn1-modules'
'python-hypothesis' 'python2-hypothesis' 'python-pytz' 'python2-pytz')
-source=("https://pypi.io/packages/source/c/cryptography/cryptography-$pkgver.tar.gz")
-md5sums=('fade66de437392ed1ba6980768626204')
+source=("https://pypi.io/packages/source/c/cryptography/cryptography-$pkgver.tar.gz"
+ 32bit-fix.patch::https://github.com/pyca/cryptography/commit/d74ba3298ddd4d3558224af85768e28f4c7f8d0d.patch)
+md5sums=('fade66de437392ed1ba6980768626204'
+ '9cce8b78c8cc7f532c4f66f2ed116896')
prepare() {
+ # https://github.com/pyca/cryptography/issues/3323
+ (cd cryptography-$pkgver; patch -p1 -i ../32bit-fix.patch)
+
cp -a cryptography-${pkgver}{,-python2}
}
@@ -26,7 +31,7 @@
build() {
cd "$srcdir"/cryptography-$pkgver
python setup.py build
-
+
cd "$srcdir"/cryptography-$pkgver-python2
python2 setup.py build
}
@@ -33,23 +38,23 @@
check() {
cd "$srcdir"/cryptography-$pkgver
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.6:$PYTHONPATH" python setup.py ptr
+ python setup.py pytest
cd "$srcdir"/cryptography-$pkgver-python2
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" python2 setup.py ptr
+ python2 setup.py pytest
}
-
+
package_python-cryptography() {
depends=('python-pyasn1' 'python-six' 'python-cffi' 'python-idna' 'python-setuptools')
-
+
cd cryptography-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
-
+
package_python2-cryptography() {
depends=('python2-pyasn1' 'python2-six' 'python2-cffi' 'python2-enum34' 'python2-idna'
'python2-ipaddress' 'python2-setuptools')
-
+
cd cryptography-$pkgver-python2
python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
More information about the arch-commits
mailing list