Merge pull request #289190 from mweinelt/python-3.13.0a4

python313: 3.13.0a3 -> 3.13.0a5

authored by Martin Weinelt and committed by GitHub ebde0069 6e147dce

+21 -2
+12
pkgs/development/interpreters/python/cpython/3.13/virtualenv-permissions.patch
··· 1 + diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py 2 + index 4856594755..6769ab8026 100644 3 + --- a/Lib/venv/__init__.py 4 + +++ b/Lib/venv/__init__.py 5 + @@ -522,6 +522,7 @@ def skip_file(f): 6 + with open(dstfile, 'wb') as f: 7 + f.write(new_data) 8 + shutil.copymode(srcfile, dstfile) 9 + + os.chmod(dstfile, 0o644) 10 + 11 + def upgrade_dependencies(self, context): 12 + logger.debug(
+7
pkgs/development/interpreters/python/cpython/default.nix
··· 60 60 , static ? stdenv.hostPlatform.isStatic 61 61 , enableFramework ? false 62 62 , noldconfigPatch ? ./. + "/${sourceVersion.major}.${sourceVersion.minor}/no-ldconfig.patch" 63 + , enableGIL ? true 63 64 64 65 # pgo (not reproducible) + -fno-semantic-interposition 65 66 # https://docs.python.org/3/using/configure.html#cmdoption-enable-optimizations ··· 111 112 inherit (lib) 112 113 concatMapStringsSep 113 114 concatStringsSep 115 + enableFeature 114 116 getDev 115 117 getLib 116 118 optionals ··· 304 306 # Make sure that the virtualenv activation scripts are 305 307 # owner-writable, so venvs can be recreated without permission 306 308 # errors. 309 + ] ++ optionals (pythonOlder "3.13") [ 307 310 ./virtualenv-permissions.patch 311 + ] ++ optionals (pythonAtLeast "3.13") [ 312 + ./3.13/virtualenv-permissions.patch 308 313 ] ++ optionals mimetypesSupport [ 309 314 # Make the mimetypes module refer to the right file 310 315 ./mimetypes.patch ··· 399 404 "--enable-shared" 400 405 ] ++ optionals enableFramework [ 401 406 "--enable-framework=${placeholder "out"}/Library/Frameworks" 407 + ] ++ optionals (pythonAtLeast "3.13") [ 408 + (enableFeature enableGIL "gil") 402 409 ] ++ optionals enableOptimizations [ 403 410 "--enable-optimizations" 404 411 ] ++ optionals (sqlite != null) [
+2 -2
pkgs/development/interpreters/python/default.nix
··· 93 93 major = "3"; 94 94 minor = "13"; 95 95 patch = "0"; 96 - suffix = "a3"; 96 + suffix = "a5"; 97 97 }; 98 - hash = "sha256-IHhMgwTrHGnID5ZuvfB3W+LjfiPfO2JGHuwSqF3Pfq0="; 98 + hash = "sha256-Hom1NVGD58iYpaAbL2AXKP5J/bidnJeB8TNghHqu+mI="; 99 99 inherit (darwin) configd; 100 100 inherit passthruFun; 101 101 };