python310: revert asyncio changes done in 3.10.9

They brought significant regressions.  Upstream is now discussing
what to do, but we still want the security fixes from 3.10.9.
This commit is contained in:
Vladimír Čunát
2022-12-12 11:45:15 +01:00
parent 63c2909cc1
commit 9ee1d16c36
2 changed files with 602 additions and 1 deletions

View File

@@ -214,7 +214,10 @@ in with passthru; stdenv.mkDerivation {
substituteInPlace setup.py --replace /Library/Frameworks /no-such-path
'';
patches = [
patches = optionals (version == "3.10.9") [
# https://github.com/python/cpython/issues/100160
./3.10/asyncio-deprecation.patch
] ++ [
# Disable the use of ldconfig in ctypes.util.find_library (since
# ldconfig doesn't work on NixOS), and don't use
# ctypes.util.find_library during the loading of the uuid module