summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-04-15 18:26:01 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-04-15 18:26:01 (GMT)
commitf7bd9cb205e4fa245544e37b1ba718ea4acf24b0 (patch)
tree2e9e41b057f129af6b1eb22780b87cbfd636af4f /abs
parent5b0ddca75c92ec44b5813bcc84c43b5d88dde85b (diff)
downloadlinhes_pkgbuild-f7bd9cb205e4fa245544e37b1ba718ea4acf24b0.zip
linhes_pkgbuild-f7bd9cb205e4fa245544e37b1ba718ea4acf24b0.tar.gz
linhes_pkgbuild-f7bd9cb205e4fa245544e37b1ba718ea4acf24b0.tar.bz2
python-cryptography: update to 1.3.1
Diffstat (limited to 'abs')
-rw-r--r--abs/core/python_modules/python-cryptography/PKGBUILD60
1 files changed, 29 insertions, 31 deletions
diff --git a/abs/core/python_modules/python-cryptography/PKGBUILD b/abs/core/python_modules/python-cryptography/PKGBUILD
index f916ada..d336c94 100644
--- a/abs/core/python_modules/python-cryptography/PKGBUILD
+++ b/abs/core/python_modules/python-cryptography/PKGBUILD
@@ -1,54 +1,52 @@
# $Id$
-# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-cryptography
pkgname=('python2-cryptography')
-pkgver=0.3
+pkgver=1.3.1
pkgrel=1
pkgdesc="A package designed to expose cryptographic recipes and primitives to Python developers"
arch=('i686' 'x86_64')
license=('Apache')
url="http://pypi.python.org/pypi/cryptography"
-makedepends=('python2-setuptools' 'python2-six' 'python2-cffi')
-checkdepends=('python2-pytest' 'python2-cryptography-vectors'
- 'python2-iso8601' 'python2-pretend')
-source=("http://pypi.python.org/packages/source/c/cryptography/cryptography-${pkgver}.tar.gz")
-md5sums=('1a9f2520acfef9489ac42fdc9a7be441')
+makedepends=('python2-setuptools' 'python2-six' 'python2-cffi' 'python2-enum34'
+ 'python2-pyasn1' 'python2-idna' 'python2-ipaddress')
+checkdepends=('python2-pytest-runner' "python2-cryptography-vectors=$pkgver"
+ 'python2-iso8601' 'python2-pretend' 'python2-pyasn1-modules'
+ 'python2-hypothesis')
+source=("http://pypi.python.org/packages/source/c/cryptography/cryptography-$pkgver.tar.gz")
+md5sums=('bc8148d2ff2d80fef8ef2d2e856b3a7f')
-check() {
- # Check python3 module
-# cd "${srcdir}"/cryptography-${pkgver}
-# python3 setup.py test
-
- # Check python2 module
- cd "${srcdir}"/cryptography-${pkgver}-python2
- python2 setup.py test
-}
-
prepare() {
- cp -a cryptography-${pkgver}{,-python2}
+ cp -a cryptography-${pkgver}{,-python2}
}
build() {
- # Build python 3 module
- cd cryptography-${pkgver}
-# python3 setup.py build
+ cd "$srcdir"/cryptography-$pkgver
+# python setup.py build
- # Build python 2 module
- cd ../cryptography-${pkgver}-python2
+ cd "$srcdir"/cryptography-$pkgver-python2
python2 setup.py build
}
+
+check() {
+ cd "$srcdir"/cryptography-$pkgver
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH" python setup.py ptr
+
+ cd "$srcdir"/cryptography-$pkgver-python2
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" python2 setup.py ptr
+}
-#package_python-cryptography() {
-# depends=('python' 'python-six' 'python-cffi')
+package_python-cryptography() {
+ depends=('python-pyasn1' 'python-six' 'python-cffi' 'python-idna')
-# cd cryptography-${pkgver}
-# python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-#}
+ cd cryptography-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
package_python2-cryptography() {
- depends=('python2' 'python2-six' 'python2-cffi')
+ depends=('python2-pyasn1' 'python2-six' 'python2-cffi' 'python2-enum34' 'python2-idna' 'python2-ipaddress')
- cd cryptography-${pkgver}-python2
- python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ cd cryptography-$pkgver-python2
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
}