···11+diff --git a/src/sage/all.py b/src/sage/all.py
22+index c87c9372e9..862fca4fcc 100644
33+--- a/src/sage/all.py
44++++ b/src/sage/all.py
55+@@ -306,6 +306,7 @@ warnings.filters.remove(('ignore', None, DeprecationWarning, None, 0))
66+ # Ignore all deprecations from IPython etc.
77+ warnings.filterwarnings('ignore', category=DeprecationWarning,
88+ module='.*(IPython|ipykernel|jupyter_client|jupyter_core|nbformat|notebook|ipywidgets|storemagic)')
99++warnings.filterwarnings('ignore', category=DeprecationWarning, message=r".*The import 'werkzeug.ImmutableDict' is deprecated")
1010+ # Ignore collections.abc warnings, there are a lot of them but they are
1111+ # harmless.
1212+ warnings.filterwarnings('ignore', category=DeprecationWarning,
···11+diff --git a/sagenb/__init__.py b/sagenb/__init__.py
22+index 4db0d2cb..2fc5f01e 100644
33+--- a/sagenb/__init__.py
44++++ b/sagenb/__init__.py
55+@@ -1,3 +1,8 @@
66+ # -*- coding: utf-8 -*
77+ # init
88++import warnings
99+ from . import storage
1010++
1111++# deprecation in attrs, needs to be fixed in twisted
1212++warnings.filterwarnings('ignore', category=DeprecationWarning,
1313++ message=r'The usage of `cmp` is deprecated and will be removed.*')
+19-6
pkgs/applications/science/math/sage/sage-env.nix
···1818, ecl
1919, maxima-ecl
2020, singular
2121+, fflas-ffpack
2222+, givaro
2323+, gd
2424+, libpng
2525+, linbox
2626+, m4ri
2127, giac
2228, palp
2329, rWrapper
···101107 name = "sage-env";
102108 destination = "/${name}";
103109 text = ''
104104- export PKG_CONFIG_PATH='${lib.concatStringsSep ":" (map (pkg: "${pkg}/lib/pkgconfig") [
105105- # This is only needed in the src/sage/misc/cython.py test and I'm not
106106- # sure if there's really a usecase for it outside of the tests. However
107107- # since singular and openblas are runtime dependencies anyways, it doesn't
108108- # really hurt to include.
110110+ export PKG_CONFIG_PATH='${lib.makeSearchPathOutput "dev" "lib/pkgconfig" [
111111+ # This should only be needed during build. However, since the doctests
112112+ # also test the cython build (for example in src/sage/misc/cython.py),
113113+ # it is also needed for the testsuite to pass. We could fix the
114114+ # testsuite instead, but since all the packages are also runtime
115115+ # dependencies it doesn't really hurt to include them here.
109116 singular
110117 openblasCompat
111111- ])
118118+ fflas-ffpack givaro
119119+ gd
120120+ libpng zlib
121121+ gsl
122122+ linbox
123123+ m4ri
124124+ ]
112125 }'
113126 export SAGE_ROOT='${sagelib.src}'
114127 export SAGE_LOCAL='@sage-local@'
+11
pkgs/applications/science/math/sage/sage-src.nix
···107107108108 # ignore a deprecation warning for usage of `cmp` in the attrs library in the doctests
109109 ./patches/ignore-cmp-deprecation.patch
110110+111111+ # Werkzeug has deprecated ImmutableDict, but it is still used in legacy
112112+ # sagenb. That's no big issue since sagenb will be removed soon anyways.
113113+ ./patches/ignore-werkzeug-immutable-dict-deprecation.patch
114114+115115+ # threejs r109 (#28560)
116116+ (fetchpatch {
117117+ name = "threejs-r109.patch";
118118+ url = "https://git.sagemath.org/sage.git/patch?id=fcc11d6effa39f375bc5f4ea5831fb7a2f2767da";
119119+ sha256 = "0hnmc8ld3bblks0hcjvjjaydkgwdr1cs3dbl2ys4gfq964pjgqwc";
120120+ })
110121 ];
111122112123 patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;
+5
pkgs/applications/science/math/sage/sagenb.nix
···2626 sha256 = "0bxvhr03qh2nsjdfc4pyfiqrn9jhp3vf7irsc9gqx0185jlblbxs";
2727 };
28282929+ patches = [
3030+ # cmp deprecation in attrs needs to be handled in twisted
3131+ ./patches/sagenb-cmp-deprecation.patch
3232+ ];
3333+2934 propagatedBuildInputs = [
3035 twisted
3136 flask