Skip to content

Commit

Permalink
Revert "Merge pull request #30913 from LnL7/darwin-cffi"
Browse files Browse the repository at this point in the history
This reverts commit f20a36f, reversing
changes made to 15350df.

I accidentally pressed the Merge button.
  • Loading branch information
FRidh committed Oct 29, 2017
1 parent f20a36f commit 94c4a6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
13 changes: 0 additions & 13 deletions pkgs/development/python-modules/cffi/clang.patch

This file was deleted.

6 changes: 2 additions & 4 deletions pkgs/development/python-modules/cffi/default.nix
@@ -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";
Expand All @@ -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
Expand Down

0 comments on commit 94c4a6c

Please sign in to comment.