m2crypto: 0.21.1 -> 0.23.0

The previous version broke because it required SSLv2 support in OpenSSL:

ImportError: /nix/store/c0z7qlycaa2jhqjq0v9vy3j4nw4layw2-python2.7-m2crypto-0.21.1/lib/python2.7/site-packages/M2Crypto/__m2crypto.so: undefined symbol: SSLv2_method
This commit is contained in:
Eelco Dolstra 2016-03-02 12:48:28 +01:00
parent a95e65b1eb
commit 49f23a6028

View File

@ -11236,17 +11236,19 @@ in modules // {
m2crypto = buildPythonPackage rec {
version = "0.21.1";
version = "0.23.0";
name = "m2crypto-${version}";
src = pkgs.fetchurl {
url = "http://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-${version}.tar.gz";
md5 = "f93d8462ff7646397a9f77a2fe602d17";
md5 = "89557730e245294a6cab06de8ad4fb42";
};
buildInputs = with self; [ pkgs.swig2 pkgs.openssl ];
preBuild = "${python}/bin/${python.executable} setup.py build_ext --openssl=${pkgs.openssl}";
preConfigure = ''
substituteInPlace setup.py --replace "self.openssl = '/usr'" "self.openssl = '${pkgs.openssl}'"
'';
doCheck = false; # another test that depends on the network.