sage: backport bugfix (#57794)

authored by Timo Kaufmann and committed by GitHub 5fc58812 8fc3c033

+14 -1
+14 -1
pkgs/applications/science/math/sage/sage-src.nix
··· 61 }) 62 ]; 63 64 # Patches needed because of package updates. We could just pin the versions of 65 # dependencies, but that would lead to rebuilds, confusion and the burdons of 66 # maintaining multiple versions of dependencies. Instead we try to make sage ··· 126 ./patches/ignore-pip-deprecation.patch 127 ]; 128 129 - patches = nixPatches ++ packageUpgradePatches; 130 131 postPatch = '' 132 # make sure shebangs etc are fixed, but sage-python23 still works
··· 61 }) 62 ]; 63 64 + # Since sage unfortunately does not release bugfix releases, packagers must 65 + # fix those bugs themselves. This is for critical bugfixes, where "critical" 66 + # == "causes (transient) doctest failures / somebody complained". 67 + bugfixPatches = [ 68 + # Transient doctest failure in src/sage/modular/abvar/torsion_subgroup.py 69 + # https://trac.sagemath.org/ticket/27477 70 + (fetchpatch { 71 + name = "sig_on_in_matrix_sparce.patch"; 72 + url = "https://git.sagemath.org/sage.git/patch?id2=10407524b18659e14e184114b61c043fb816f3c2&id=c9b0cc9d0b8748ab85e568f8f57f316c5e8cbe54"; 73 + sha256 = "0wgp7yvn9sm1ynlhcr4l0hzmvr2n28llg4xc01p6k1zz4im64c17"; 74 + }) 75 + ]; 76 + 77 # Patches needed because of package updates. We could just pin the versions of 78 # dependencies, but that would lead to rebuilds, confusion and the burdons of 79 # maintaining multiple versions of dependencies. Instead we try to make sage ··· 139 ./patches/ignore-pip-deprecation.patch 140 ]; 141 142 + patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches; 143 144 postPatch = '' 145 # make sure shebangs etc are fixed, but sage-python23 still works