From f7bd9cb205e4fa245544e37b1ba718ea4acf24b0 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 15 Apr 2016 18:26:01 +0000 Subject: python-cryptography: update to 1.3.1 --- .../python_modules/python-cryptography/PKGBUILD | 60 +++++++++++----------- 1 file 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 +# Maintainer: Felix Yan 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 } -- cgit v0.12