blob: d336c94482f6a0593f1b7bd988f00ad4522388ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-cryptography
pkgname=('python2-cryptography')
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' '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')
prepare() {
cp -a cryptography-${pkgver}{,-python2}
}
build() {
cd "$srcdir"/cryptography-$pkgver
# python setup.py build
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-pyasn1' 'python-six' 'python-cffi' 'python-idna')
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')
cd cryptography-$pkgver-python2
python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
|