python3Packages.cffi: use build-system/dependencies (#342042)
This commit is contained in:
@@ -57,14 +57,13 @@ else
|
|||||||
--replace '/usr/include/libffi' '${lib.getDev libffi}/include'
|
--replace '/usr/include/libffi' '${lib.getDev libffi}/include'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [ pkg-config ];
|
||||||
pkg-config
|
|
||||||
setuptools
|
build-system = [ setuptools ];
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [ libffi ];
|
buildInputs = [ libffi ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ pycparser ];
|
dependencies = [ pycparser ];
|
||||||
|
|
||||||
# The tests use -Werror but with python3.6 clang detects some unreachable code.
|
# The tests use -Werror but with python3.6 clang detects some unreachable code.
|
||||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument -Wno-unreachable-code -Wno-c++11-narrowing";
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument -Wno-unreachable-code -Wno-c++11-narrowing";
|
||||||
|
|||||||
Reference in New Issue
Block a user