summaryrefslogtreecommitdiff
path: root/extra/python-cryptography
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-05-18 03:52:05 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-05-18 03:52:05 +0000
commit423ae5a5a1cd103d57b8cb52279533b3011f42d8 (patch)
tree0816754beb383cc3d3b45b501150f48ea42b1377 /extra/python-cryptography
parent313040c7029fd0c36db63d7effbb974fd348389c (diff)
Sun May 18 03:42:25 UTC 2014
Diffstat (limited to 'extra/python-cryptography')
-rw-r--r--extra/python-cryptography/PKGBUILD28
1 files changed, 14 insertions, 14 deletions
diff --git a/extra/python-cryptography/PKGBUILD b/extra/python-cryptography/PKGBUILD
index c966bc315..18e334002 100644
--- a/extra/python-cryptography/PKGBUILD
+++ b/extra/python-cryptography/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 209863 2014-04-07 10:17:02Z fyan $
+# $Id: PKGBUILD 212992 2014-05-17 05:33:24Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
pkgbase=python-cryptography
pkgname=('python-cryptography' 'python2-cryptography')
-pkgver=0.3
+pkgver=0.4
pkgrel=1
pkgdesc="A package designed to expose cryptographic recipes and primitives to Python developers"
arch=('i686' 'x86_64')
@@ -11,20 +11,10 @@ license=('Apache')
url="http://pypi.python.org/pypi/cryptography"
makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'python-cffi' 'python2-cffi')
checkdepends=('python-pytest' 'python2-pytest' 'python-cryptography-vectors' 'python2-cryptography-vectors'
- 'python-iso8601' 'python2-iso8601' 'python-pretend' 'python2-pretend')
+ 'python-iso8601' 'python2-iso8601' 'python-pretend' 'python2-pretend' 'python-pyasn1' 'python2-pyasn1')
source=("http://pypi.python.org/packages/source/c/cryptography/cryptography-${pkgver}.tar.gz")
-md5sums=('1a9f2520acfef9489ac42fdc9a7be441')
+md5sums=('d1bb13648a12eda2a54653ba113d2e84')
-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}
}
@@ -38,6 +28,16 @@ build() {
cd ../cryptography-${pkgver}-python2
python2 setup.py build
}
+
+check() {
+ # Check python3 module
+ cd "${srcdir}"/cryptography-${pkgver}
+ python3 setup.py test
+
+ # Check python2 module
+ cd "${srcdir}"/cryptography-${pkgver}-python2
+ python2 setup.py test
+}
package_python-cryptography() {
depends=('python' 'python-six' 'python-cffi')