m2crypto: fix build with libressl (#53537)

This commit is contained in:
Andrew Dunham 2019-02-07 05:01:42 -05:00 committed by Danylo Hlynskyi
parent bdca4ec510
commit 96b66178f1

View File

@ -1,4 +1,5 @@
{ stdenv { stdenv
, fetchpatch
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, swig2 , swig2
@ -16,6 +17,14 @@ buildPythonPackage rec {
sha256 = "a1b2751cdadc6afac3df8a5799676b7b7c67a6ad144bb62d38563062e7cd3fc6"; sha256 = "a1b2751cdadc6afac3df8a5799676b7b7c67a6ad144bb62d38563062e7cd3fc6";
}; };
patches = [
(fetchpatch {
url = "https://github.com/void-linux/void-packages/raw/7946d12eb3d815e5ecd4578f1a6133d948694370/srcpkgs/python-M2Crypto/patches/libressl.patch";
sha256 = "0z5qnkndg6ma5f5qqrid5m95i9kybsr000v3fdy1ab562kf65a27";
})
];
patchFlags = "-p0";
buildInputs = [ swig2 openssl ]; buildInputs = [ swig2 openssl ];
propagatedBuildInputs = [ typing ]; propagatedBuildInputs = [ typing ];
@ -30,6 +39,7 @@ buildPythonPackage rec {
description = "A Python crypto and SSL toolkit"; description = "A Python crypto and SSL toolkit";
homepage = http://chandlerproject.org/Projects/MeTooCrypto; homepage = http://chandlerproject.org/Projects/MeTooCrypto;
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ andrew-d ];
}; };
} }