python3Packages.tkinter: build with tcl/tk 9.0 for python 3.14+

Upstream Python 3.14 ships with tcl/tk 9.0 since Python 3.14.7 [1].

For Python 3.15+, also the tkinter documentation states that binary
releases are bundled with tcl/tk 9.0 [2].

[1] https://github.com/python/cpython/issues/124111
[2] https://docs.python.org/3.15/library/tkinter.html
This commit is contained in:
Tom Hunze
2026-08-09 17:48:30 +02:00
parent 6c4529d072
commit a617c0f9ec

View File

@@ -20458,8 +20458,8 @@ self: super: with self; {
# Tcl/Tk 9.0 support in Tkinter is not quite ready yet:
# - https://github.com/python/cpython/issues/124111
# - https://github.com/python/cpython/issues/104568
tcl = pkgs.tcl-8_6;
tk = pkgs.tk-8_6;
tcl = if pythonAtLeast "3.14" then pkgs.tcl-9_0 else pkgs.tcl-8_6;
tk = if pythonAtLeast "3.14" then pkgs.tk-9_0 else pkgs.tk-8_6;
};
tkinter-gl = callPackage ../development/python-modules/tkinter-gl { };