python310Packages.matplotlib: disable tkinter for PyPy

PyPy doesn't support tkinter and matplotlib uses tkagg instead for it.
This commit is contained in:
Sandro Jäckel 2023-07-02 04:41:57 +02:00
parent f51a92af2f
commit 0000006fe8
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

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