From 05a564a0d0ee7c9d28988534cba52435ec0f6ffb Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 4 Feb 2025 23:35:43 +0100 Subject: [PATCH] cpython: add isPy313, isPy314 helpers --- pkgs/development/interpreters/python/passthrufun.nix | 2 ++ pkgs/development/interpreters/python/python-packages-base.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pkgs/development/interpreters/python/passthrufun.nix b/pkgs/development/interpreters/python/passthrufun.nix index fde2bab1e86c..d4e20aa24fc9 100644 --- a/pkgs/development/interpreters/python/passthrufun.nix +++ b/pkgs/development/interpreters/python/passthrufun.nix @@ -119,6 +119,8 @@ rec { isPy310 = pythonVersion == "3.10"; isPy311 = pythonVersion == "3.11"; isPy312 = pythonVersion == "3.12"; + isPy313 = pythonVersion == "3.13"; + isPy314 = pythonVersion == "3.14"; isPy2 = lib.strings.substring 0 1 pythonVersion == "2"; isPy3 = lib.strings.substring 0 1 pythonVersion == "3"; isPy3k = isPy3; diff --git a/pkgs/development/interpreters/python/python-packages-base.nix b/pkgs/development/interpreters/python/python-packages-base.nix index 19c230a0b94e..66a7c823fecc 100644 --- a/pkgs/development/interpreters/python/python-packages-base.nix +++ b/pkgs/development/interpreters/python/python-packages-base.nix @@ -126,6 +126,8 @@ in isPy310 isPy311 isPy312 + isPy313 + isPy314 isPy3k isPyPy pythonAtLeast