pythonPackages.lxml: fix build on darwin

authored by Ivan Babrou and committed by github-actions[bot] c31077a6 e0a6159f

+3 -2
+3 -2
pkgs/development/python-modules/lxml/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub 2 , cython 3 , libxml2 4 , libxslt 5 , zlib 6 }: 7 8 buildPythonPackage rec { ··· 17 }; 18 19 # setuptoolsBuildPhase needs dependencies to be passed through nativeBuildInputs 20 - nativeBuildInputs = [ libxml2.dev libxslt.dev cython ]; 21 buildInputs = [ libxml2 libxslt zlib ]; 22 23 # tests are meant to be ran "in-place" in the same directory as src
··· 1 + { stdenv, lib, buildPythonPackage, fetchFromGitHub 2 , cython 3 , libxml2 4 , libxslt 5 , zlib 6 + , xcodebuild 7 }: 8 9 buildPythonPackage rec { ··· 18 }; 19 20 # setuptoolsBuildPhase needs dependencies to be passed through nativeBuildInputs 21 + nativeBuildInputs = [ libxml2.dev libxslt.dev cython ] ++ lib.optionals stdenv.isDarwin [ xcodebuild ]; 22 buildInputs = [ libxml2 libxslt zlib ]; 23 24 # tests are meant to be ran "in-place" in the same directory as src