···6161 })
6262 ];
63636464+ # Since sage unfortunately does not release bugfix releases, packagers must
6565+ # fix those bugs themselves. This is for critical bugfixes, where "critical"
6666+ # == "causes (transient) doctest failures / somebody complained".
6767+ bugfixPatches = [
6868+ # Transient doctest failure in src/sage/modular/abvar/torsion_subgroup.py
6969+ # https://trac.sagemath.org/ticket/27477
7070+ (fetchpatch {
7171+ name = "sig_on_in_matrix_sparce.patch";
7272+ url = "https://git.sagemath.org/sage.git/patch?id2=10407524b18659e14e184114b61c043fb816f3c2&id=c9b0cc9d0b8748ab85e568f8f57f316c5e8cbe54";
7373+ sha256 = "0wgp7yvn9sm1ynlhcr4l0hzmvr2n28llg4xc01p6k1zz4im64c17";
7474+ })
7575+ ];
7676+6477 # Patches needed because of package updates. We could just pin the versions of
6578 # dependencies, but that would lead to rebuilds, confusion and the burdons of
6679 # maintaining multiple versions of dependencies. Instead we try to make sage
···126139 ./patches/ignore-pip-deprecation.patch
127140 ];
128141129129- patches = nixPatches ++ packageUpgradePatches;
142142+ patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;
130143131144 postPatch = ''
132145 # make sure shebangs etc are fixed, but sage-python23 still works