Merge #275854: python311Packages.lxml: fix build with clang

...into staging-next
This commit is contained in:
Vladimír Čunát 2023-12-23 22:11:11 +01:00
commit e41b94c4c1
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -28,6 +28,10 @@ buildPythonPackage rec {
nativeBuildInputs = [ libxml2.dev libxslt.dev cython ] ++ lib.optionals stdenv.isDarwin [ xcodebuild ];
buildInputs = [ libxml2 libxslt zlib ];
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types";
};
# tests are meant to be ran "in-place" in the same directory as src
doCheck = false;