mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
pythonPackages.matplotlib: re-add Cocoa as buildInput on darwin (#22741)
This commit is contained in:
parent
c0d1226750
commit
99fdc8b651
@ -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
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user