sage: 9.7 -> 9.8

+7 -96
+2 -1
pkgs/applications/science/math/sage/env-locations.nix
··· 35 35 export GRAPHS_DATA_DIR='${graphs}/share/graphs' 36 36 export ELLCURVE_DATA_DIR='${elliptic_curves}/share/ellcurves' 37 37 export POLYTOPE_DATA_DIR='${polytopes_db}/share/reflexive_polytopes' 38 - export GAP_ROOT_DIR='${gap}/share/gap' 38 + export GAP_LIB_DIR='${gap}/lib/gap' 39 + export GAP_SHARE_DIR='${gap}/share/gap' 39 40 export ECLDIR='${maxima.lisp-compiler}/lib/${maxima.lisp-compiler.pname}-${maxima.lisp-compiler.version}/' 40 41 export COMBINATORIAL_DESIGN_DATA_DIR="${combinatorial_designs}/share/combinatorial_designs" 41 42 export CREMONA_MINI_DATA_DIR="${elliptic_curves}/share/cremona"
-26
pkgs/applications/science/math/sage/patches/pari-2.15.1-upgrade-rebased.patch
··· 1 - diff --git a/src/sage/geometry/polyhedron/backend_normaliz.py b/src/sage/geometry/polyhedron/backend_normaliz.py 2 - index 86b89632a5..ca8a43b248 100644 3 - --- a/src/sage/geometry/polyhedron/backend_normaliz.py 4 - +++ b/src/sage/geometry/polyhedron/backend_normaliz.py 5 - @@ -53,7 +53,7 @@ def _number_field_elements_from_algebraics_list_of_lists_of_lists(listss, **kwds 6 - 1.732050807568878? 7 - sage: from sage.geometry.polyhedron.backend_normaliz import _number_field_elements_from_algebraics_list_of_lists_of_lists 8 - sage: K, results, hom = _number_field_elements_from_algebraics_list_of_lists_of_lists([[[rt2], [1]], [[rt3]], [[1], []]]); results # optional - sage.rings.number_field 9 - - [[[-a^3 + 3*a], [1]], [[-a^2 + 2]], [[1], []]] 10 - + [[[-a^3 + 3*a], [1]], [[a^2 - 2]], [[1], []]] 11 - """ 12 - from sage.rings.qqbar import number_field_elements_from_algebraics 13 - numbers = [] 14 - diff --git a/src/sage/lfunctions/pari.py b/src/sage/lfunctions/pari.py 15 - index d2b20f1891..6c31efe239 100644 16 - --- a/src/sage/lfunctions/pari.py 17 - +++ b/src/sage/lfunctions/pari.py 18 - @@ -339,7 +339,7 @@ def lfun_eta_quotient(scalings, exponents): 19 - 0.0374412812685155 20 - 21 - sage: lfun_eta_quotient([6],[4]) 22 - - [[Vecsmall([7]), [Vecsmall([6]), Vecsmall([4])]], 0, [0, 1], 2, 36, 1] 23 - + [[Vecsmall([7]), [Vecsmall([6]), Vecsmall([4]), 0]], 0, [0, 1], 2, 36, 1] 24 - 25 - sage: lfun_eta_quotient([2,1,4], [5,-2,-2]) 26 - Traceback (most recent call last):
+5 -69
pkgs/applications/science/math/sage/sage-src.nix
··· 57 57 ); 58 58 in 59 59 stdenv.mkDerivation rec { 60 - version = "9.7"; 60 + version = "9.8"; 61 61 pname = "sage-src"; 62 62 63 63 src = fetchFromGitHub { 64 64 owner = "sagemath"; 65 65 repo = "sage"; 66 66 rev = version; 67 - sha256 = "sha256-MYpCp18wqKwCa+tcJ7He14p1FXDlVm1vubQqQS9g3LY="; 67 + sha256 = "sha256-dDbrzJXsOBARYfJz0r7n3LbaoXHnx7Acz6HBa95NV9o="; 68 68 }; 69 69 70 70 # Patches needed because of particularities of nix or the way this is packaged. ··· 89 89 # To help debug the transient error in 90 90 # https://trac.sagemath.org/ticket/23087 when it next occurs. 91 91 ./patches/configurationpy-error-verbose.patch 92 - 93 - # https://trac.sagemath.org/ticket/33907 94 - (fetchSageDiff { 95 - name = "interfaces-expectpy-intermittent.patch"; 96 - base = "9.8.beta6"; 97 - rev = "6f5c1c2fc8bcfb5e6555716d05ce70511795ffa1"; 98 - sha256 = "sha256-z8FQxtrk62MHzPjrUTad+fMAE6XV8GTsLWKgGOM3zBg="; 99 - }) 100 92 ]; 101 93 102 94 # Patches needed because of package updates. We could just pin the versions of ··· 119 111 # adapted from https://trac.sagemath.org/ticket/23712#comment:22 120 112 ./patches/tachyon-renamed-focallength.patch 121 113 122 - # https://trac.sagemath.org/ticket/34118 123 - (fetchSageDiff { 124 - name = "sympy-1.11-upgrade.patch"; 125 - base = "9.7"; 126 - rev = "52815744bde2b682245b6f985a112f7cb8666056"; 127 - sha256 = "sha256-gv6z6JkQ6S6oCJQNkVgcPVvzlplyvR1nC7pWmcUiSc0="; 128 - }) 129 - 130 - # https://trac.sagemath.org/ticket/34460 131 - (fetchSageDiff { 132 - name = "ipywidgets-8-upgrade.patch"; 133 - base = "9.7"; 134 - rev = "2816dbacb342398a23bb3099e20c92c8020ab0fa"; 135 - sha256 = "sha256-tCOsMxXwPkRg3FJGVvTqDzlWdra78UfDY6nci0Nr9GI="; 136 - }) 137 - 138 114 # https://trac.sagemath.org/ticket/34391 139 115 (fetchSageDiff { 140 116 name = "gap-4.12-upgrade.patch"; 141 - base = "9.8.beta2"; 142 - rev = "eb8cd42feb58963adba67599bf6e311e03424328"; 143 - sha256 = "sha256-0dKewOZe2n3PqSdxCJt18FkqwTdrD0VA5MXAMiTW8Tw="; 117 + base = "9.8.beta7"; 118 + rev = "dd4a17281adcda74e11f998ef519b6bd0dafb043"; 119 + sha256 = "sha256-UQT9DO9xd5hh5RucvUkIm+rggPKu8bc1YaSI6LVYH98="; 144 120 }) 145 121 146 122 # https://trac.sagemath.org/ticket/34701 ··· 149 125 base = "eb8cd42feb58963adba67599bf6e311e03424328"; # TODO: update when #34391 lands 150 126 rev = "90acc7f1c13a80b8aa673469a2668feb9cd4207f"; 151 127 sha256 = "sha256-9BhQLFB3wUhiXRQsK9L+I62lSjvTfrqMNi7QUIQvH4U="; 152 - }) 153 - 154 - # https://trac.sagemath.org/ticket/34537 155 - (fetchSageDiff { 156 - name = "pari-2.15.1-upgrade.patch"; 157 - squashed = true; 158 - base = "54cd6fe6de52aee5a433e0569e8c370618cb2047"; # 9.8.beta1 159 - rev = "1e86aa26790d84bf066eca67f98a60a8aa3d4d3a"; 160 - sha256 = "sha256-LUgcMqrKXWb72Kxl0n6MV5unLXlQSeG8ncN41F7TRSc="; 161 - excludes = ["build/*" 162 - "src/sage/geometry/polyhedron/base_number_field.py" 163 - "src/sage/geometry/polyhedron/backend_normaliz.py" 164 - "src/sage/lfunctions/pari.py"]; 165 - }) 166 - # Some files were excluded from the above patch due to 167 - # conflicts. The patch below contains rebased versions. 168 - ./patches/pari-2.15.1-upgrade-rebased.patch 169 - 170 - # https://trac.sagemath.org/ticket/34668 171 - (fetchSageDiff { 172 - name = "matplotlib-3.6-upgrade.patch"; 173 - base = "9.8.beta2"; 174 - rev = "5501e0de0dca1cff0355326dd42bd8c7e5749568"; 175 - sha256 = "sha256-ceJkVaecIsZewN8v/3gPQXFbFjv5Akz6zEFg/ToXdek="; 176 - }) 177 - 178 - # https://trac.sagemath.org/ticket/34693 179 - (fetchSageDiff { 180 - name = "matplotlib-3.6-docbuilding.patch"; 181 - base = "9.8.beta4"; 182 - rev = "64589686c261d33e6b5aff2589bcae8af004bcc6"; 183 - sha256 = "sha256-j5AMY1TmhP+HBBBYaFZSkABJ5vtwe6iP2LRfGEgSm8Q="; 184 - }) 185 - 186 - # https://trac.sagemath.org/ticket/34615 187 - (fetchSageDiff { 188 - name = "sphinx-5.2-upgrade.patch"; 189 - base = "9.8.beta1"; 190 - rev = "8f8af65e54d3a9962cfab40f15dc23f4e955b43f"; 191 - sha256 = "sha256-yhDdyxnXSSkqLcuOPBWSEBc26rk1Od3gLcWW8S2p8bY="; 192 128 }) 193 129 194 130 # temporarily paper over https://github.com/jupyter-widgets/ipywidgets/issues/3669