summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-01-02 14:47:43 -0600
committerShea Levy <shea@shealevy.com>2015-01-03 07:53:08 -0500
commit783e27e32ae45163288509f0f35124cd78214685 (patch)
tree0e5e00f881d4c6bd9a69593ca4f687a6f67d6035 /pkgs/development/python-modules
parent70befe1df1117ed8a74b55ea30b0b25010341235 (diff)
downloadnixlib-783e27e32ae45163288509f0f35124cd78214685.tar
nixlib-783e27e32ae45163288509f0f35124cd78214685.tar.gz
nixlib-783e27e32ae45163288509f0f35124cd78214685.tar.bz2
nixlib-783e27e32ae45163288509f0f35124cd78214685.tar.lz
nixlib-783e27e32ae45163288509f0f35124cd78214685.tar.xz
nixlib-783e27e32ae45163288509f0f35124cd78214685.tar.zst
nixlib-783e27e32ae45163288509f0f35124cd78214685.zip
pycrypto: preConfigure patch ups
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/pycrypto/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pycrypto/default.nix b/pkgs/development/python-modules/pycrypto/default.nix
index 59bd9affef67..4faaf20d29c3 100644
--- a/pkgs/development/python-modules/pycrypto/default.nix
+++ b/pkgs/development/python-modules/pycrypto/default.nix
@@ -9,6 +9,11 @@ buildPythonPackage rec {
     sha256 = "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj";
   };
 
+  preConfigure = ''
+    sed -i 's,/usr/include,/no-such-dir,' configure
+    sed -i "s!,'/usr/include/'!!" setup.py
+  '';
+
   buildInputs = stdenv.lib.optional (!python.isPypy or false) gmp; # optional for pypy
 
   doCheck = !(python.isPypy or stdenv.isDarwin); # error: AF_UNIX path too long