···4848 # trashcan support is needed to avoid stack overflows during object deallocation in sage (https://trac.sagemath.org/ticket/27267)
4949 (fetchpatch {
5050 name = "trashcan.patch";
5151- url = "https://git.sagemath.org/sage.git/plain/build/pkgs/cython/patches/trashcan.patch?id=4569a839f070a1a38d5dbce2a4d19233d25aeed2";
5252- sha256 = "sha256-+pOF1XNTEtNseLpqPzrc1Jfwt5hGx7doUoccIhNneYY=";
5151+ url = "https://github.com/cython/cython/commit/f781880b6780117660b2026caadf4a6d7905722f.patch";
5252+ sha256 = "sha256-SnjaJdBZxm3O5gJ5Dxut6+eeVtZv+ygUUNwAwgoiFxg=";
5353+ })
5454+ # The above commit introduces custom trashcan macros, as well as
5555+ # compiler changes to use them in Cython-emitted code. The latter
5656+ # change is still useful, but the former has been upstreamed as of
5757+ # Python 3.8, and the patch below makes Cython use the upstream
5858+ # trashcan macros whenever available. This is needed for Python
5959+ # 3.11 support, because the API used in Cython's implementation
6060+ # changed: https://github.com/cython/cython/pull/4475
6161+ (fetchpatch {
6262+ name = "disable-trashcan.patch";
6363+ url = "https://github.com/cython/cython/commit/e337825cdcf5e94d38ba06a0cb0188e99ce0cc92.patch";
6464+ sha256 = "sha256-q0f63eetKrDpmP5Z4v8EuGxg26heSyp/62OYqhRoSso=";
5365 })
5466 ];
5567