From adb4fccdc759cc12b4791e486df9412190a308d9 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 11 May 2026 22:18:34 +0200 Subject: [PATCH] python3: 3.13 -> 3.14 For 26.11 Python 3.14 will be the default Python release while 3.13 is mostly provided for legacy compat. --- .../interpreters/python/default.nix | 36 +++++++++---------- pkgs/top-level/all-packages.nix | 4 +-- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/pkgs/development/interpreters/python/default.nix b/pkgs/development/interpreters/python/default.nix index 1e70883b03a2..b2d04d79b56f 100644 --- a/pkgs/development/interpreters/python/default.nix +++ b/pkgs/development/interpreters/python/default.nix @@ -16,14 +16,14 @@ passthruFun = import ./passthrufun.nix args; sources = { - python313 = { + python314 = { sourceVersion = { major = "3"; - minor = "13"; - patch = "13"; + minor = "14"; + patch = "5"; suffix = ""; }; - hash = "sha256-Krkf9AF4PMymT3XRDIgulXvf1g4r9acvhCF5Nym3inE="; + hash = "sha256-fjJZe5nl2aOavtNd5Gk/oWnfPlhQ1MM0M3/9ahmjbbY="; }; }; @@ -66,26 +66,26 @@ inherit passthruFun; }; - python313 = callPackage ./cpython ( - { - self = __splicedPackages.python313; - inherit passthruFun; - } - // sources.python313 - ); - - python314 = callPackage ./cpython { - self = __splicedPackages.python314; + python313 = callPackage ./cpython { + self = __splicedPackages.python313; sourceVersion = { major = "3"; - minor = "14"; - patch = "5"; + minor = "13"; + patch = "13"; suffix = ""; }; - hash = "sha256-fjJZe5nl2aOavtNd5Gk/oWnfPlhQ1MM0M3/9ahmjbbY="; + hash = "sha256-Krkf9AF4PMymT3XRDIgulXvf1g4r9acvhCF5Nym3inE="; inherit passthruFun; }; + python314 = callPackage ./cpython ( + { + self = __splicedPackages.python314; + inherit passthruFun; + } + // sources.python314 + ); + python315 = callPackage ./cpython { self = __splicedPackages.python315; sourceVersion = { @@ -108,7 +108,7 @@ # strip down that python version as much as possible withMinimalDeps = true; } - // sources.python313 + // sources.python314 )).overrideAttrs (old: { # TODO(@Artturin): Add this to the main cpython expr diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 304bce45d634..5d305e9d5258 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4899,11 +4899,11 @@ with pkgs; # available as `pythonPackages.tkinter` and can be used as any other Python package. # When switching these sets, please update docs at ../../doc/languages-frameworks/python.md python2 = python27; - python3 = python313; + python3 = python314; # pythonPackages further below, but assigned here because they need to be in sync python2Packages = dontRecurseIntoAttrs python27Packages; - python3Packages = dontRecurseIntoAttrs python313Packages; + python3Packages = dontRecurseIntoAttrs python314Packages; pypy = pypy2; pypy2 = pypy27;