From 0000006fe82e889af95a716d02702866968187f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 2 Jul 2023 04:41:57 +0200 Subject: [PATCH] python310Packages.matplotlib: disable tkinter for PyPy PyPy doesn't support tkinter and matplotlib uses tkagg instead for it. --- pkgs/development/python-modules/matplotlib/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix index b35d6ec4a0a2..a61a1ae559cd 100644 --- a/pkgs/development/python-modules/matplotlib/default.nix +++ b/pkgs/development/python-modules/matplotlib/default.nix @@ -3,6 +3,7 @@ , fetchPypi , writeText , buildPythonPackage +, isPyPy , pythonOlder # https://github.com/matplotlib/matplotlib/blob/main/doc/devel/dependencies.rst @@ -39,7 +40,8 @@ , pygobject3 # Tk -, enableTk ? !stdenv.isDarwin # darwin has its own "MacOSX" backend +# Darwin has its own "MacOSX" backend, PyPy has tkagg backend and does not support tkinter +, enableTk ? (!stdenv.isDarwin && !isPyPy) , tcl , tk , tkinter