summary refs log tree commit diff
path: root/pkgs/development/python-modules/lxml
diff options
context:
space:
mode:
authorIvan Babrou <github@ivan.computer>2021-03-17 13:32:48 -0700
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-03-18 00:49:23 +0000
commitc31077a6020c4d365496a618ba07121b9331bc52 (patch)
tree67f663bc8727455cef62511d2b538d7ac1737d45 /pkgs/development/python-modules/lxml
parente0a6159fc60c5a049a5c11d4ba7c148815ee1cea (diff)
pythonPackages.lxml: fix build on darwin
Diffstat (limited to 'pkgs/development/python-modules/lxml')
-rw-r--r--pkgs/development/python-modules/lxml/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/lxml/default.nix b/pkgs/development/python-modules/lxml/default.nix
index b58376031039d..36b1539834d61 100644
--- a/pkgs/development/python-modules/lxml/default.nix
+++ b/pkgs/development/python-modules/lxml/default.nix
@@ -1,8 +1,9 @@
-{ lib, buildPythonPackage, fetchFromGitHub
+{ stdenv, lib, buildPythonPackage, fetchFromGitHub
 , cython
 , libxml2
 , libxslt
 , zlib
+, xcodebuild
 }:
 
 buildPythonPackage rec {
@@ -17,7 +18,7 @@ buildPythonPackage rec {
   };
 
   # setuptoolsBuildPhase needs dependencies to be passed through nativeBuildInputs
-  nativeBuildInputs = [ libxml2.dev libxslt.dev cython ];
+  nativeBuildInputs = [ libxml2.dev libxslt.dev cython ] ++ lib.optionals stdenv.isDarwin [ xcodebuild ];
   buildInputs = [ libxml2 libxslt zlib ];
 
   # tests are meant to be ran "in-place" in the same directory as src