python-cryptography: use packaging from setuptools for now

This commit is contained in:
Alessio Sergi 2017-03-27 18:38:18 +02:00
parent e062ade843
commit af593136f3

View file

@ -1,7 +1,7 @@
# Template file for 'python-cryptography'
pkgname=python-cryptography
version=1.8.1
revision=1
revision=2
wrksrc="cryptography-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools libressl-devel
@ -19,6 +19,7 @@ distfiles="${PYPI_SITE}/c/cryptography/cryptography-${version}.tar.gz"
checksum=323524312bb467565ebca7e50c8ae5e9674e544951d28a2904a50012a8828190
pre_build() {
sed -i '/packaging/d' setup.py
sed -i 's/packaging.version/pkg_resources.extern.\0/' src/cryptography/utils.py
}
post_install() {