python311Packages.matplotlib: disable Tk on Python 3.11
The tkinter package fails to build on Python 3.11.
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
fetchPypi,
|
fetchPypi,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
isPyPy,
|
isPyPy,
|
||||||
|
pythonAtLeast,
|
||||||
pythonOlder,
|
pythonOlder,
|
||||||
|
|
||||||
# build-system
|
# build-system
|
||||||
@@ -52,7 +53,8 @@
|
|||||||
|
|
||||||
# Tk
|
# Tk
|
||||||
# Darwin has its own "MacOSX" backend, PyPy has tkagg backend and does not support tkinter
|
# Darwin has its own "MacOSX" backend, PyPy has tkagg backend and does not support tkinter
|
||||||
enableTk ? (!stdenv.hostPlatform.isDarwin && !isPyPy),
|
# tkinter fails to build on Python 3.11
|
||||||
|
enableTk ? (!stdenv.hostPlatform.isDarwin && !isPyPy && pythonAtLeast "3.12"),
|
||||||
tkinter,
|
tkinter,
|
||||||
|
|
||||||
# Qt
|
# Qt
|
||||||
|
|||||||
Reference in New Issue
Block a user