Revert "Merge pull request #30913 from LnL7/darwin-cffi"
This reverts commitf20a36fcd8, reversing changes made to15350df8d9. I accidentally pressed the Merge button.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, isPy27, isPyPy, fetchPypi, libffi, pycparser, pytest }:
|
||||
{ stdenv, buildPythonPackage, isPyPy, fetchPypi, libffi, pycparser, pytest }:
|
||||
|
||||
if isPyPy then null else buildPythonPackage rec {
|
||||
pname = "cffi";
|
||||
@@ -10,15 +10,13 @@ if isPyPy then null else buildPythonPackage rec {
|
||||
sha256 = "ab87dd91c0c4073758d07334c1e5f712ce8fe48f007b86f8238773963ee700a6";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optional isPy27 ./clang.patch;
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
propagatedBuildInputs = [ libffi pycparser ];
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
# The tests use -Werror but with python3.6 clang detects some unreachable code.
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionals stdenv.cc.isClang [ "-Wno-unused-command-line-argument" "-Wno-unreachable-code" ];
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.cc.isClang "-Wno-unreachable-code";
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
|
||||
Reference in New Issue
Block a user