From 49ea72c3f3c72331204e1404c3414b0c915574d3 Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Fri, 15 Jul 2016 22:01:58 -0400 Subject: [PATCH] pythonPackages.cffi: fix on darwin This isn't conditional because it works on other platforms too --- pkgs/top-level/python-packages.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 21700fe82d1..04dc7a26ac0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4373,6 +4373,12 @@ in modules // { propagatedBuildInputs = with self; [ pkgs.libffi pycparser ]; buildInputs = with self; [ pytest ]; + patchPhase = '' + substituteInPlace testing/cffi0/test_ownlib.py --replace "gcc" "cc" + ''; + + NIX_CFLAGS_COMPILE="-Wno-shift-negative-value"; + checkPhase = '' py.test '';