python.pkgs.m2crypto: fix build

This commit is contained in:
Frederik Rietdijk 2018-11-24 14:51:51 +01:00
parent b5cb0f0dee
commit 86cd63efd3

View File

@ -1,7 +1,9 @@
{ stdenv { stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pkgs , swig2
, openssl
, typing
}: }:
@ -14,10 +16,12 @@ buildPythonPackage rec {
sha256 = "a1b2751cdadc6afac3df8a5799676b7b7c67a6ad144bb62d38563062e7cd3fc6"; sha256 = "a1b2751cdadc6afac3df8a5799676b7b7c67a6ad144bb62d38563062e7cd3fc6";
}; };
buildInputs = [ pkgs.swig2 pkgs.openssl ]; buildInputs = [ swig2 openssl ];
propagatedBuildInputs = [ typing ];
preConfigure = '' preConfigure = ''
substituteInPlace setup.py --replace "self.openssl = '/usr'" "self.openssl = '${pkgs.openssl.dev}'" substituteInPlace setup.py --replace "self.openssl = '/usr'" "self.openssl = '${openssl.dev}'"
''; '';
doCheck = false; # another test that depends on the network. doCheck = false; # another test that depends on the network.