[arch-commits] Commit in python-cryptography/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Thu Dec 18 06:32:00 UTC 2014


    Date: Thursday, December 18, 2014 @ 07:32:00
  Author: fyan
Revision: 227737

upgpkg: python-cryptography 0.7-1

upstream new release

Modified:
  python-cryptography/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-12-18 06:31:36 UTC (rev 227736)
+++ PKGBUILD	2014-12-18 06:32:00 UTC (rev 227737)
@@ -3,20 +3,23 @@
 
 pkgbase=python-cryptography
 pkgname=('python-cryptography' 'python2-cryptography')
-pkgver=0.6.1
+pkgver=0.7
 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=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'python-cffi' 'python2-cffi')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'python-cffi' 'python2-cffi' 'python2-enum34')
 checkdepends=('python-pytest' 'python2-pytest' 'python-cryptography-vectors' 'python2-cryptography-vectors'
               '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=('1c48fd78742d85c9cffdcceb6809e45b')
+md5sums=('bfd1094de5dbbb40f99aae5c4a5657e4')
 
 prepare() {
    cp -a cryptography-${pkgver}{,-python2}
+
+   # Don't depend on enum34 since we already have python 3.4
+   sed -i 's/"enum34",//' cryptography-${pkgver}/setup.py
 }
 
 build() {
@@ -32,11 +35,11 @@
 check() {
    # Check python3 module
    cd "${srcdir}"/cryptography-${pkgver}
-   python3 setup.py test
+   PYTHONPATH="$(pwd)/build/lib.linux-$CARCH-3.4:$PYTHONPATH" python3 setup.py test
 
    # Check python2 module
    cd "${srcdir}"/cryptography-${pkgver}-python2
-   python2 setup.py test
+   PYTHONPATH="$(pwd)/build/lib.linux-$CARCH-2.7:$PYTHONPATH" python2 setup.py test
 }
  
 package_python-cryptography() {
@@ -47,7 +50,7 @@
 }
  
 package_python2-cryptography() {
-   depends=('python2' 'python2-six' 'python2-cffi')
+   depends=('python2' 'python2-six' 'python2-cffi' 'python2-enum34')
  
    cd cryptography-${pkgver}-python2
    python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build



More information about the arch-commits mailing list