git.iko.soy/typeable/nixpkgs
on master help sign in
sage: ignore werkzeug immutable dict deprecation
commitda7ec1c1397fd50803962e0bcf74e1fe97a228d5 authorTimo Kaufmann <timokau@zoho.com> dateMon 4 Nov 2019, 21:48 (7 years ago) parentf85ce83
2 files changed+16
pkgs/applications/science/math/sage/patches/ignore-werkzeug-immutable-dict-deprecation.patch+12 pkgs/applications/science/math/sage/sage-src.nix+4
pkgs/applications/science/math/sage/patches/ignore-werkzeug-immutable-dict-deprecation.patchnew file+12
@@ -0,0 +1,12 @@
1+diff --git a/src/sage/all.py b/src/sage/all.py
2+index c87c9372e9..862fca4fcc 100644
3+--- a/src/sage/all.py
4++++ b/src/sage/all.py
5+@@ -306,6 +306,7 @@ warnings.filters.remove(('ignore', None, DeprecationWarning, None, 0))
6+ # Ignore all deprecations from IPython etc.
7+ warnings.filterwarnings('ignore', category=DeprecationWarning,
8+ module='.*(IPython|ipykernel|jupyter_client|jupyter_core|nbformat|notebook|ipywidgets|storemagic)')
9++warnings.filterwarnings('ignore', category=DeprecationWarning, message=r".*The import 'werkzeug.ImmutableDict' is deprecated")
10+ # Ignore collections.abc warnings, there are a lot of them but they are
11+ # harmless.
12+ warnings.filterwarnings('ignore', category=DeprecationWarning,
pkgs/applications/science/math/sage/sage-src.nix+4
@@ -107,6 +107,10 @@ stdenv.mkDerivation rec {
107107
108108 # ignore a deprecation warning for usage of `cmp` in the attrs library in the doctests
109109 ./patches/ignore-cmp-deprecation.patch
110+
111+ # Werkzeug has deprecated ImmutableDict, but it is still used in legacy
112+ # sagenb. That's no big issue since sagenb will be removed soon anyways.
113+ ./patches/ignore-werkzeug-immutable-dict-deprecation.patch
110114 ];
111115
112116 patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;