diff --git a/srcpkgs/python-cryptography/patches/libressl.patch b/srcpkgs/python-cryptography/patches/libressl.patch new file mode 100644 index 00000000000..0862a9be3e9 --- /dev/null +++ b/srcpkgs/python-cryptography/patches/libressl.patch @@ -0,0 +1,11 @@ +--- src/cryptography/hazmat/bindings/openssl/ec.py ++++ src/cryptography/hazmat/bindings/openssl/ec.py +@@ -390,7 +390,7 @@ static const long Cryptography_HAS_EC2M = 1; + #endif + + #if defined(OPENSSL_NO_EC) || OPENSSL_VERSION_NUMBER < 0x1000200f || \ +- defined(LIBRESSL_VERSION_NUMBER) ++ !defined(LIBRESSL_VERSION_NUMBER) + static const long Cryptography_HAS_EC_1_0_2 = 0; + const char *(*EC_curve_nid2nist)(int) = NULL; + #else diff --git a/srcpkgs/python-cryptography/template b/srcpkgs/python-cryptography/template index 6fa2d7201f9..09bc50953bb 100644 --- a/srcpkgs/python-cryptography/template +++ b/srcpkgs/python-cryptography/template @@ -1,7 +1,7 @@ # Template file for 'python-cryptography' pkgname=python-cryptography version=0.9.3 -revision=1 +revision=2 wrksrc="cryptography-${version}" build_style=python-module python_versions="2.7 3.4"