mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +02:00
python310Packages.matplotlib: disable tkinter for PyPy
PyPy doesn't support tkinter and matplotlib uses tkagg instead for it.
This commit is contained in:
parent
f51a92af2f
commit
0000006fe8
|
@ -3,6 +3,7 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, writeText
|
, writeText
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, isPyPy
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
|
||||||
# https://github.com/matplotlib/matplotlib/blob/main/doc/devel/dependencies.rst
|
# https://github.com/matplotlib/matplotlib/blob/main/doc/devel/dependencies.rst
|
||||||
|
@ -39,7 +40,8 @@
|
||||||
, pygobject3
|
, pygobject3
|
||||||
|
|
||||||
# Tk
|
# 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
|
, tcl
|
||||||
, tk
|
, tk
|
||||||
, tkinter
|
, tkinter
|
||||||
|
|
Loading…
Reference in a new issue