aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-08-14 16:17:04 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2016-08-14 16:21:52 +0200
commitc3748e09e2eab7c71f55fa9fc0d23eaf6fa992a4 (patch)
tree655ed99bd989c3bc35200b0f5921bdf8e95ddd2b /community
parente60710a72dad14b58e87f77e0e58160ad31ee5fc (diff)
downloadaports-c3748e09e2eab7c71f55fa9fc0d23eaf6fa992a4.tar.bz2
aports-c3748e09e2eab7c71f55fa9fc0d23eaf6fa992a4.tar.xz
community/py-cryptography: fix dependencies
Diffstat (limited to 'community')
-rw-r--r--community/py-cryptography/APKBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/community/py-cryptography/APKBUILD b/community/py-cryptography/APKBUILD
index 9fc2b25159..2ec7129325 100644
--- a/community/py-cryptography/APKBUILD
+++ b/community/py-cryptography/APKBUILD
@@ -3,18 +3,17 @@
pkgname=py-cryptography
_pkgname=${pkgname#py-}
pkgver=1.4
-pkgrel=0
+pkgrel=1
pkgdesc="A package which provides cryptographic recipes and primitives"
url="http://pypi.python.org/pypi/cryptography"
arch="noarch"
license="ASL-2.0"
-depends=""
+depends="py-cffi py-idna py-asn1 py-six"
makedepends="python2-dev python3-dev py-setuptools libffi-dev openssl-dev"
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
-#source="$pkgname-$pkgver.tar.gz::https://github.com/pyca/$_pkgname/archive/$pkgver.tar.gz"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-builddir="$srcdir"/$_pkgname-$pkgver
+builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
python2 setup.py build || return 1
@@ -31,12 +30,14 @@ _py() {
arch="all"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
+ $python setup.py install --prefix=/usr \
+ --root="$subpkgdir" --optimize=1 || return 1
}
_py2() {
_py python2
replaces="$pkgname"
+ depends="$depends py-ipaddress py-enum34"
}
_py3() {