From 20543fc7928adb73c23cc075218f8d4e4fe0657e Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Fri, 7 Aug 2015 11:51:45 +0200 Subject: [PATCH] python-cryptography: use older cffi. Closes #9157 --- pkgs/top-level/python-packages.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b4ff86612272..22c72ad42237 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2300,7 +2300,7 @@ let buildInputs = [ pkgs.openssl self.pretend self.cryptography_vectors self.iso8601 self.pyasn1 self.pytest ]; - propagatedBuildInputs = [ self.six ] ++ optional (!isPyPy) self.cffi; + propagatedBuildInputs = [ self.six ] ++ optional (!isPyPy) self.cffi_0_8; }; cryptography_vectors = buildPythonPackage rec { @@ -2402,6 +2402,21 @@ let }; }; + cffi_0_8 = buildPythonPackage rec { + name = "cffi-0.8.6"; + + src = pkgs.fetchurl { + url = "http://pypi.python.org/packages/source/c/cffi/${name}.tar.gz"; + sha256 = "0406j3sgndmx88idv5zxkkrwfqxmjl18pj8gf47nsg4ymzixjci5"; + }; + + propagatedBuildInputs = with self; [ pkgs.libffi pycparser ]; + + meta = { + maintainers = with maintainers; [ iElectric ]; + }; + }; + cffi = buildPythonPackage rec { name = "cffi-1.1.2";