From 1e87c6534aac0bd00b95459c16348fd4c94b0c77 Mon Sep 17 00:00:00 2001 From: Norbert Melzer Date: Sat, 8 Apr 2023 16:23:03 +0200 Subject: [PATCH] python3Packages.matplotlib: fix Tk The refactor that happened in the same commit as the version bump somehow broke Tk support. This commit fixes the issue by moving tkinter to propagatedBuildInputs. --- pkgs/development/python-modules/matplotlib/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix index b029b4cd2654..1fd70739b4c8 100644 --- a/pkgs/development/python-modules/matplotlib/default.nix +++ b/pkgs/development/python-modules/matplotlib/default.nix @@ -135,7 +135,6 @@ buildPythonPackage rec { libX11 tcl tk - tkinter ] ++ lib.optionals stdenv.isDarwin [ Cocoa ]; @@ -167,6 +166,8 @@ buildPythonPackage rec { tornado ] ++ lib.optionals enableNbagg [ ipykernel + ] ++ lib.optionals enableTk [ + tkinter ]; passthru.config = {