about summary refs log tree commit diff
path: root/pkgs/development/python-modules/matplotlib
diff options
context:
space:
mode:
authorgeorgewhewell <georgewhewell@users.noreply.github.com>2017-02-13 14:03:59 +0000
committerRobin Gloster <mail@glob.in>2017-02-13 15:03:59 +0100
commit99fdc8b65162da56c4d90f4a937f9f0cfdc89b69 (patch)
tree245e87907bffd55dbf0bb895bf5b5c60df30b9ba /pkgs/development/python-modules/matplotlib
parentc0d12267508b43c2752f35a224985dc6a2b06a46 (diff)
downloadnixlib-99fdc8b65162da56c4d90f4a937f9f0cfdc89b69.tar
nixlib-99fdc8b65162da56c4d90f4a937f9f0cfdc89b69.tar.gz
nixlib-99fdc8b65162da56c4d90f4a937f9f0cfdc89b69.tar.bz2
nixlib-99fdc8b65162da56c4d90f4a937f9f0cfdc89b69.tar.lz
nixlib-99fdc8b65162da56c4d90f4a937f9f0cfdc89b69.tar.xz
nixlib-99fdc8b65162da56c4d90f4a937f9f0cfdc89b69.tar.zst
nixlib-99fdc8b65162da56c4d90f4a937f9f0cfdc89b69.zip
pythonPackages.matplotlib: re-add Cocoa as buildInput on darwin (#22741)
Diffstat (limited to 'pkgs/development/python-modules/matplotlib')
-rw-r--r--pkgs/development/python-modules/matplotlib/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix
index 9f85cb06d97c..b917575e2390 100644
--- a/pkgs/development/python-modules/matplotlib/default.nix
+++ b/pkgs/development/python-modules/matplotlib/default.nix
@@ -7,6 +7,7 @@
 , enableTk ? false, tcl ? null, tk ? null, tkinter ? null, libX11 ? null
 , enableQt ? false, pyqt4
 , libcxx
+, Cocoa
 }:
 
 assert enableGhostscript -> ghostscript != null;
@@ -32,7 +33,8 @@ buildPythonPackage rec {
   XDG_RUNTIME_DIR = "/tmp";
 
   buildInputs = [ python which sphinx stdenv ]
-    ++ stdenv.lib.optional enableGhostscript ghostscript;
+    ++ stdenv.lib.optional enableGhostscript ghostscript
+    ++ stdenv.lib.optional stdenv.isDarwin [ Cocoa ];
 
   propagatedBuildInputs =
     [ cycler dateutil nose numpy pyparsing tornado freetype