pythonPackages.cffi: fix on darwin

This isn't conditional because it works on other platforms too
This commit is contained in:
Dan Peebles 2016-07-15 22:01:58 -04:00
parent bc685f8a7c
commit 49ea72c3f3

View File

@ -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
'';