Skip to content

Commit

Permalink
pythonPackages.pycrypto: add patch to fix CVE-2013-7459
Browse files Browse the repository at this point in the history
cc #21642

(cherry picked from commit fe93734)
  • Loading branch information
fpletz committed Jan 5, 2017
1 parent e924319 commit a0f8bc1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/development/python-modules/pycrypto/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, python, buildPythonPackage, gmp }:
{ stdenv, fetchurl, fetchpatch, python, buildPythonPackage, gmp }:

buildPythonPackage rec {
name = "pycrypto-2.6.1";
Expand All @@ -9,6 +9,14 @@ buildPythonPackage rec {
sha256 = "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj";
};

patches = [
(fetchpatch {
name = "CVE-2013-7459.patch";
url = "https://anonscm.debian.org/cgit/collab-maint/python-crypto.git/plain/debian/patches/CVE-2013-7459.patch?h=debian/2.6.1-7";
sha256 = "01r7aghnchc1bpxgdv58qyi2085gh34bxini973xhy3ks7fq3ir9";
})
];

preConfigure = ''
sed -i 's,/usr/include,/no-such-dir,' configure
sed -i "s!,'/usr/include/'!!" setup.py
Expand Down

0 comments on commit a0f8bc1

Please sign in to comment.