From 542765a510d3b6d61eaec879c0efac5709fa006c Mon Sep 17 00:00:00 2001 From: dotlambda Date: Fri, 11 Apr 2025 12:10:51 -0700 Subject: [PATCH] python313Packages.matplotlib: remove unused dependencies (#397240) --- .../python-modules/matplotlib/default.nix | 12 ------------ pkgs/top-level/python-packages.nix | 1 - 2 files changed, 13 deletions(-) diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix index 735e13d74142..2f4a925a2117 100644 --- a/pkgs/development/python-modules/matplotlib/default.nix +++ b/pkgs/development/python-modules/matplotlib/default.nix @@ -53,14 +53,8 @@ # Tk # Darwin has its own "MacOSX" backend, PyPy has tkagg backend and does not support tkinter enableTk ? (!stdenv.hostPlatform.isDarwin && !isPyPy), - tcl, - tk, tkinter, - # Ghostscript - enableGhostscript ? true, - ghostscript, - # Qt enableQt ? false, pyqt5, @@ -130,16 +124,10 @@ buildPythonPackage rec { freetype qhull ] - ++ lib.optionals enableGhostscript [ ghostscript ] ++ lib.optionals enableGtk3 [ cairo gtk3 ] - ++ lib.optionals enableTk [ - libX11 - tcl - tk - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ]; # clang-11: error: argument unused during compilation: '-fno-strict-overflow' [-Werror,-Wunused-command-line-argument] diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4c2860af5b3c..15fb04e72e75 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8428,7 +8428,6 @@ self: super: with self; { matplotlib = callPackage ../development/python-modules/matplotlib { stdenv = if stdenv.hostPlatform.isDarwin then pkgs.clangStdenv else pkgs.stdenv; inherit (pkgs.darwin.apple_sdk.frameworks) Cocoa; - ghostscript = pkgs.ghostscript_headless; }; matplotlib-inline = callPackage ../development/python-modules/matplotlib-inline { };