python313: init at 3.13.0a1

https://docs.python.org/3.13/whatsnew/changelog.html#python-3-13-0-alpha-1
This commit is contained in:
Martin Weinelt
2023-10-17 23:06:20 +02:00
parent 0c6f367b5e
commit 13c8e4299a
4 changed files with 128 additions and 2 deletions
@@ -324,7 +324,7 @@ in with passthru; stdenv.mkDerivation (finalAttrs: {
'' + optionalString mimetypesSupport ''
substituteInPlace Lib/mimetypes.py \
--replace "@mime-types@" "${mailcap}"
'' + optionalString (x11Support && (tix != null)) ''
'' + optionalString (pythonOlder "3.13" && x11Support && (tix != null)) ''
substituteInPlace "Lib/tkinter/tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
'';