cpython: add isPy313, isPy314 helpers

This commit is contained in:
Martin Weinelt
2025-02-04 23:54:32 +01:00
parent 0eb1378c30
commit 05a564a0d0
2 changed files with 4 additions and 0 deletions
@@ -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;
@@ -126,6 +126,8 @@ in
isPy310
isPy311
isPy312
isPy313
isPy314
isPy3k
isPyPy
pythonAtLeast