pythonPackages.matplotlib: re-add Cocoa as buildInput on darwin (#22741)

This commit is contained in:
georgewhewell 2017-02-13 14:03:59 +00:00 committed by Robin Gloster
parent c0d1226750
commit 99fdc8b651
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -14281,6 +14281,7 @@ in {
matplotlib = callPackage ../development/python-modules/matplotlib/default.nix {
stdenv = if stdenv.isDarwin then pkgs.clangStdenv else pkgs.stdenv;
enableGhostscript = true;
inherit (pkgs.darwin.apple_sdk.frameworks) Cocoa;
};