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