about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2020-05-01 22:12:10 +0000
committerGitHub <noreply@github.com>2020-05-01 22:12:10 +0000
commit7866440f1223dc447f38cb23c00e10b44b4c98fe (patch)
treec073fdd8d296438e94ce7a2b674ef24412344a03
parent76c1884a2007718d3a57d60af9d0ddea0f32425e (diff)
parentc0bd938e5ca4b5c2f789c3d937c9ce344e5cf7ae (diff)
downloadnixlib-7866440f1223dc447f38cb23c00e10b44b4c98fe.tar
nixlib-7866440f1223dc447f38cb23c00e10b44b4c98fe.tar.gz
nixlib-7866440f1223dc447f38cb23c00e10b44b4c98fe.tar.bz2
nixlib-7866440f1223dc447f38cb23c00e10b44b4c98fe.tar.lz
nixlib-7866440f1223dc447f38cb23c00e10b44b4c98fe.tar.xz
nixlib-7866440f1223dc447f38cb23c00e10b44b4c98fe.tar.zst
nixlib-7866440f1223dc447f38cb23c00e10b44b4c98fe.zip
Merge pull request #86274 from samlich/sage-matrix-double-dense
sage: fix doctest matrix_double_dense is_unitary
-rw-r--r--pkgs/applications/science/math/sage/sage-src.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/sage/sage-src.nix b/pkgs/applications/science/math/sage/sage-src.nix
index cd465a8c413a..4791d12450a9 100644
--- a/pkgs/applications/science/math/sage/sage-src.nix
+++ b/pkgs/applications/science/math/sage/sage-src.nix
@@ -29,6 +29,14 @@ stdenv.mkDerivation rec {
       url = "https://git.sagemath.org/sage.git/patch?id2=8bdc326ba57d1bb9664f63cf165a9e9920cc1afc&id=dc673c17555efca611f68398d5013b66e9825463";
       sha256 = "1hhannz7xzprijakn2w2d0rhd5zv2zikik9p51i87bas3nc658f7";
     })
+    
+    # `is_unitary` test in `matrix_double_dense.pyx` fails with some BLAS implementations
+    # https://trac.sagemath.org/ticket/29297 should be included in 9.1
+    (fetchpatch {
+      name = "is_unitary-special-case.patch";
+      url = "https://git.sagemath.org/sage.git/patch?id=cc3eb9ffa991e328b09028d32aab7e7cc2ddbb6a";
+      sha256 = "0jq4w8hnp5c9q99011ldr4n3knvm1rx2g85z0hidv3i9x868p0ay";
+    })
 
     # Unfortunately inclusion in upstream sage was rejected. Instead the bug was
     # fixed in python, but of course not backported to 2.7. So we'll probably