Merge pull request #130396 from collares/sage-9.4

sage: 9.3 -> 9.4

authored by

Sandro and committed by
GitHub
00f31216 14f81d33

+56 -93
+2 -2
pkgs/applications/science/math/maxima/default.nix
··· 4 4 5 5 let 6 6 name = "maxima"; 7 - version = "5.44.0"; 7 + version = "5.45.0"; 8 8 9 9 lisp-compiler = if ecl-fasl then ecl else sbcl; 10 10 ··· 18 18 19 19 src = fetchurl { 20 20 url = "mirror://sourceforge/${name}/${name}-${version}.tar.gz"; 21 - sha256 = "1v6jr5s6hhj6r18gfk6hgxk2qd6z1dxkrjq9ss2z1y6sqi45wgyr"; 21 + sha256 = "sha256-x2MfMmRIBc67e6/vOrUzHEus0sJ+OE/YgyO1A5pg0Ng="; 22 22 }; 23 23 24 24 nativeBuildInputs = [
+11
pkgs/applications/science/math/pynac/default.nix
··· 1 1 { lib, stdenv 2 + , fetchpatch 2 3 , fetchFromGitHub 3 4 , autoreconfHook 4 5 , pkg-config ··· 19 20 rev = "pynac-${version}"; 20 21 sha256 = "sha256-ocR7emXtKs+Xe2f6dh4xEDAacgiolY8mtlLnWnNBS8A="; 21 22 }; 23 + 24 + patches = [ 25 + # the patch below is included in sage 9.4 and should be included 26 + # in a future pynac release. see https://trac.sagemath.org/ticket/28357 27 + (fetchpatch { 28 + name = "realpartloop.patch"; 29 + url = "https://git.sagemath.org/sage.git/plain/build/pkgs/pynac/patches/realpartloop.patch?h=9.4.beta5"; 30 + sha256 = "sha256-1nj0xtlFN5fZKEiRLD+tiW/ZtxMQre1ziEGA0OVUGE4="; 31 + }) 32 + ]; 22 33 23 34 buildInputs = [ 24 35 flint
+9 -9
pkgs/applications/science/math/sage/patches/do-not-test-find-library.patch
··· 1 1 diff --git a/src/sage/env.py b/src/sage/env.py 2 - index 2908f5d04f..81dfd75c0d 100644 2 + index 95980cc2df..37107a30e1 100644 3 3 --- a/src/sage/env.py 4 4 +++ b/src/sage/env.py 5 - @@ -218,93 +218,12 @@ NTL_LIBDIR = var("NTL_LIBDIR") 5 + @@ -227,93 +227,12 @@ OPENMP_CXXFLAGS = var("OPENMP_CXXFLAGS", "") 6 6 SAGE_BANNER = var("SAGE_BANNER", "") 7 7 SAGE_IMPORTALL = var("SAGE_IMPORTALL", "yes") 8 8 ··· 51 51 - if sys.platform == 'cygwin': 52 52 - # Later down we take the first matching DLL found, so search 53 53 - # SAGE_LOCAL first so that it takes precedence 54 - - search_directories = [ 55 - - Path(SAGE_LOCAL) / 'bin', 56 - - Path(sysconfig.get_config_var('BINDIR')), 57 - - ] 54 + - if SAGE_LOCAL: 55 + - search_directories.append(Path(SAGE_LOCAL) / 'bin') 56 + - search_directories.append(Path(sysconfig.get_config_var('BINDIR'))) 58 57 - # Note: The following is not very robust, since if there are multible 59 58 - # versions for the same library this just selects one more or less 60 59 - # at arbitrary. However, practically speaking, on Cygwin, there ··· 66 65 - else: 67 66 - ext = 'so' 68 67 - 69 - - search_directories = [Path(SAGE_LOCAL) / 'lib'] 68 + - if SAGE_LOCAL: 69 + - search_directories.append(Path(SAGE_LOCAL) / 'lib') 70 70 - libdir = sysconfig.get_config_var('LIBDIR') 71 71 - if libdir is not None: 72 72 - libdir = Path(libdir) 73 73 - search_directories.append(libdir) 74 74 - 75 75 - multiarchlib = sysconfig.get_config_var('MULTIARCH') 76 - - if multiarchlib is not None: 76 + - if multiarchlib is not None: 77 77 - search_directories.append(libdir / multiarchlib), 78 78 - 79 79 - patterns = [f'lib{libname}.{ext}'] ··· 97 97 +GAP_SO = var("GAP_SO", '/default') 98 98 99 99 # post process 100 - if ' ' in DOT_SAGE: 100 + if DOT_SAGE is not None and ' ' in DOT_SAGE:
-24
pkgs/applications/science/math/sage/patches/ignore-cmp-deprecation.patch
··· 1 - diff --git a/src/sage/tests/cmdline.py b/src/sage/tests/cmdline.py 2 - index 6e034dcb5a..8ec60ec72b 100644 3 - --- a/src/sage/tests/cmdline.py 4 - +++ b/src/sage/tests/cmdline.py 5 - @@ -660,8 +660,8 @@ def test_executable(args, input="", timeout=100.0, pydebug_ignore_warnings=False 6 - sage: with open(input, 'w') as F: 7 - ....: _ = F.write(s) 8 - sage: L = ["sage", "--rst2ipynb", input, output] 9 - - sage: test_executable(L) # optional - rst2ipynb 10 - - ('', '', 0) 11 - + sage: test_executable(L)[2] # optional - rst2ipynb 12 - + 0 13 - sage: import json # optional - rst2ipynb 14 - sage: d = json.load(open(output,'r')) # optional - rst2ipynb 15 - sage: type(d) # optional - rst2ipynb 16 - @@ -757,8 +757,6 @@ def test_executable(args, input="", timeout=100.0, pydebug_ignore_warnings=False 17 - /// 18 - 4 19 - }}} 20 - - sage: err # py2 # optional -- sagenb 21 - - '' 22 - sage: ret # py2 # optional -- sagenb 23 - 0 24 -
+3 -58
pkgs/applications/science/math/sage/sage-src.nix
··· 29 29 ); 30 30 in 31 31 stdenv.mkDerivation rec { 32 - version = "9.3"; 32 + version = "9.4"; 33 33 pname = "sage-src"; 34 34 35 35 src = fetchFromGitHub { 36 36 owner = "sagemath"; 37 37 repo = "sage"; 38 38 rev = version; 39 - sha256 = "sha256-l9DX8jcDdKA7GJ6xU+nBsmlZxrcZ9ZUAJju621ooBEo="; 39 + sha256 = "sha256-jqkr4meG02KbTCMsGvyr1UbosS4ZuUJhPXU/InuS+9A="; 40 40 }; 41 41 42 42 # Patches needed because of particularities of nix or the way this is packaged. ··· 77 77 # be empty since dependencies update all the time. 78 78 packageUpgradePatches = [ 79 79 # After updating smypow to (https://trac.sagemath.org/ticket/3360) we can 80 - # now set the cache dir to be withing the .sage directory. This is not 80 + # now set the cache dir to be within the .sage directory. This is not 81 81 # strictly necessary, but keeps us from littering in the user's HOME. 82 82 ./patches/sympow-cache.patch 83 - 84 - # ignore a deprecation warning for usage of `cmp` in the attrs library in the doctests 85 - ./patches/ignore-cmp-deprecation.patch 86 - 87 - # remove use of matplotlib function deprecated in 3.4 88 - # https://trac.sagemath.org/ticket/31827 89 - (fetchSageDiff { 90 - base = "9.3"; 91 - name = "remove-matplotlib-deprecated-function.patch"; 92 - rev = "32b2bcaefddc4fa3d2aee6fa690ce1466cbb5948"; 93 - sha256 = "sha256-SXcUGBMOoE9HpuBzgKC3P6cUmM5MiktXbe/7dVdrfWo="; 94 - }) 95 - 96 - # pari 2.13 update 97 - # https://trac.sagemath.org/ticket/30801 98 - # 99 - # the last commit in that ticket is 100 - # c78b1470fccd915e2fa93f95f2fefba6220fb1f7, but commits after 101 - # 10a4531721d2700fd717e2b3a1364508ffd971c3 only deal with 32-bit 102 - # and post-26635 breakage, none of which is relevant to us. since 103 - # there are post-9.4.beta0 rebases after that, we just skip later 104 - # commits. 105 - (fetchSageDiff { 106 - base = "9.3"; 107 - name = "pari-2.13.1.patch"; 108 - rev = "10a4531721d2700fd717e2b3a1364508ffd971c3"; 109 - sha256 = "sha256-gffWKK9CMREaNOb5zb63iZUgON4FvsPrMQNqe+5ZU9E="; 110 - }) 111 - 112 - # sympy 1.8 update 113 - # https://trac.sagemath.org/ticket/31647 114 - (fetchSageDiff { 115 - base = "9.4.beta0"; 116 - name = "sympy-1.8.patch"; 117 - rev = "fa864b36e15696450c36d54215b1e68183b29d25"; 118 - sha256 = "sha256-fj/9QEZlVF0fw9NpWflkTuBSKpGjCE6b96ECBgdn77o="; 119 - }) 120 - 121 - # sphinx 4 update 122 - # https://trac.sagemath.org/ticket/31696 123 - (fetchSageDiff { 124 - base = "9.4.beta3"; 125 - name = "sphinx-4.patch"; 126 - rev = "bc84af8c795b7da433d2000afc3626ee65ba28b8"; 127 - sha256 = "sha256-5Kvs9jarC8xRIU1rdmvIWxQLC25ehiTLJpg5skh8WNM="; 128 - }) 129 - 130 - # eclib 20210625 update 131 - # https://trac.sagemath.org/ticket/31443 132 - (fetchSageDiff { 133 - base = "9.4.beta3"; 134 - name = "eclib-20210625.patch"; 135 - rev = "789550ca04c94acfb1e803251538996a34962038"; 136 - sha256 = "sha256-VlyEn5hg3joG8t/GwiRfq9TzJ54AoHxLolsNQ3shc2c="; 137 - }) 138 83 ]; 139 84 140 85 patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;
+2
pkgs/applications/science/math/sage/sagelib.nix
··· 27 27 , linbox 28 28 , m4ri 29 29 , m4rie 30 + , memory-allocator 30 31 , libmpc 31 32 , mpfi 32 33 , ntl ··· 107 108 lrcalc 108 109 m4ri 109 110 m4rie 111 + memory-allocator 110 112 mpfi 111 113 ntl 112 114 blas
+27
pkgs/development/python-modules/memory-allocator/default.nix
··· 1 + { lib 2 + , fetchPypi 3 + , buildPythonPackage 4 + , cython 5 + }: 6 + 7 + buildPythonPackage rec { 8 + pname = "memory-allocator"; 9 + version = "0.1.0"; 10 + 11 + src = fetchPypi { 12 + inherit version; 13 + pname = "memory_allocator"; 14 + sha256 = "sha256-UUcR71e3eAQIQpmWM+AVQxVtgHvrNjaIlHo5pURUln0="; 15 + }; 16 + 17 + propagatedBuildInputs = [ cython ]; 18 + 19 + pythonImportsCheck = [ "memory_allocator" ]; 20 + 21 + meta = with lib; { 22 + description = "An extension class to allocate memory easily with cython"; 23 + homepage = "https://github.com/sagemath/memory_allocator/"; 24 + maintainers = teams.sage.members; 25 + license = licenses.lgpl3Plus; 26 + }; 27 + }
+2
pkgs/top-level/python-packages.nix
··· 4471 4471 4472 4472 memcached = callPackage ../development/python-modules/memcached { }; 4473 4473 4474 + memory-allocator = callPackage ../development/python-modules/memory-allocator { }; 4475 + 4474 4476 memory_profiler = callPackage ../development/python-modules/memory_profiler { }; 4475 4477 4476 4478 mercantile = callPackage ../development/python-modules/mercantile { };