summary refs log tree commit diff
path: root/pkgs/applications/science/math/sage
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2019-03-17 14:36:01 +0000
committerGitHub <noreply@github.com>2019-03-17 14:36:01 +0000
commit5fc5881221bc7e301adecf7eeae76c392cec9714 (patch)
treeca6ea109419d089aa5f846e330901a58b591be32 /pkgs/applications/science/math/sage
parent8fc3c033cbc9b43389aa7b0711d74d8975be0ad0 (diff)
downloadnixpkgs-5fc5881221bc7e301adecf7eeae76c392cec9714.tar
nixpkgs-5fc5881221bc7e301adecf7eeae76c392cec9714.tar.gz
nixpkgs-5fc5881221bc7e301adecf7eeae76c392cec9714.tar.bz2
nixpkgs-5fc5881221bc7e301adecf7eeae76c392cec9714.tar.lz
nixpkgs-5fc5881221bc7e301adecf7eeae76c392cec9714.tar.xz
nixpkgs-5fc5881221bc7e301adecf7eeae76c392cec9714.tar.zst
nixpkgs-5fc5881221bc7e301adecf7eeae76c392cec9714.zip
sage: backport bugfix (#57794)
Diffstat (limited to 'pkgs/applications/science/math/sage')
-rw-r--r--pkgs/applications/science/math/sage/sage-src.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/applications/science/math/sage/sage-src.nix b/pkgs/applications/science/math/sage/sage-src.nix
index 51a83d70415..dd51059ff01 100644
--- a/pkgs/applications/science/math/sage/sage-src.nix
+++ b/pkgs/applications/science/math/sage/sage-src.nix
@@ -61,6 +61,19 @@ stdenv.mkDerivation rec {
     })
   ];
 
+  # Since sage unfortunately does not release bugfix releases, packagers must
+  # fix those bugs themselves. This is for critical bugfixes, where "critical"
+  # == "causes (transient) doctest failures / somebody complained".
+  bugfixPatches = [
+    # Transient doctest failure in src/sage/modular/abvar/torsion_subgroup.py
+    # https://trac.sagemath.org/ticket/27477
+    (fetchpatch {
+      name = "sig_on_in_matrix_sparce.patch";
+      url = "https://git.sagemath.org/sage.git/patch?id2=10407524b18659e14e184114b61c043fb816f3c2&id=c9b0cc9d0b8748ab85e568f8f57f316c5e8cbe54";
+      sha256 = "0wgp7yvn9sm1ynlhcr4l0hzmvr2n28llg4xc01p6k1zz4im64c17";
+    })
+  ];
+
   # Patches needed because of package updates. We could just pin the versions of
   # dependencies, but that would lead to rebuilds, confusion and the burdons of
   # maintaining multiple versions of dependencies. Instead we try to make sage
@@ -126,7 +139,7 @@ stdenv.mkDerivation rec {
     ./patches/ignore-pip-deprecation.patch
   ];
 
-  patches = nixPatches ++ packageUpgradePatches;
+  patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;
 
   postPatch = ''
     # make sure shebangs etc are fixed, but sage-python23 still works