diff --git a/pkgs/applications/science/math/sage/patches/ipywidgets-on_submit-deprecationwarning.patch b/pkgs/applications/science/math/sage/patches/ipywidgets-on_submit-deprecationwarning.patch deleted file mode 100644 index b0f3634340f5..000000000000 --- a/pkgs/applications/science/math/sage/patches/ipywidgets-on_submit-deprecationwarning.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/sage/interacts/library.py b/src/sage/interacts/library.py -index 06d680109a..139b00bfd1 100644 ---- a/src/sage/interacts/library.py -+++ b/src/sage/interacts/library.py -@@ -1434,6 +1434,8 @@ def riemann_sum( - creates the mathlet:: - - sage: interacts.calculus.riemann_sum() -+ ... -+ DeprecationWarning: on_submit is deprecated. Instead, set the .continuous_update attribute to False and observe the value changing with: mywidget.observe(callback, 'value'). - Manual interactive function with 9 widgets - title: HTMLText(value='

Riemann integral with random sampling

') - f: EvalText(value='x^2+1', description='$f(x)=$', layout=Layout(max_width='41em')) diff --git a/pkgs/applications/science/math/sage/sage-src.nix b/pkgs/applications/science/math/sage/sage-src.nix index 8913d636fae9..f2e02685416c 100644 --- a/pkgs/applications/science/math/sage/sage-src.nix +++ b/pkgs/applications/science/math/sage/sage-src.nix @@ -141,12 +141,23 @@ stdenv.mkDerivation rec { sha256 = "sha256-YdPnMsjXBm9ZRm6a8hH8rSynkrABjLoIzqwp3F/rKAw="; }) + # https://github.com/sagemath/sage/pull/35336, merged in 10.0.beta8 + (fetchpatch { + name = "ipywidgets-8.0.5-upgrade.patch"; + url = "https://github.com/sagemath/sage/commit/7ab3e3aa81d47a35d09161b965bba8ab16fd5c9e.diff"; + sha256 = "sha256-WjdsPTui6uv92RerlV0mqltmLaxADvz+3aqSvxBFmfU="; + }) + + # https://github.com/sagemath/sage/pull/35499 + (fetchpatch { + name = "ipywidgets-8.0.5-upgrade-part-deux.patch"; + url = "https://github.com/sagemath/sage/pull/35499.diff"; + sha256 = "sha256-uNCjLs9qrARTQNsq1+kTdvuV2A1M4xx5b1gWh5c55X0="; + }) + # rebased from https://github.com/sagemath/sage/pull/34994, merged in sage 10.0.beta2 ./patches/numpy-1.24-upgrade.patch - # temporarily paper over https://github.com/jupyter-widgets/ipywidgets/issues/3669 - ./patches/ipywidgets-on_submit-deprecationwarning.patch - # Sage uses mixed integer programs (MIPs) to find edge disjoint # spanning trees. For some reason, aarch64 glpk takes much longer # than x86_64 glpk to solve such MIPs. Since the MIP formulation diff --git a/pkgs/development/python-modules/comm/default.nix b/pkgs/development/python-modules/comm/default.nix index 4cf5dcdf4128..2f42ef87e928 100644 --- a/pkgs/development/python-modules/comm/default.nix +++ b/pkgs/development/python-modules/comm/default.nix @@ -8,7 +8,7 @@ let pname = "comm"; - version = "0.1.2"; + version = "0.1.3"; in buildPythonPackage { inherit pname version; @@ -17,8 +17,8 @@ buildPythonPackage { src = fetchFromGitHub { owner = "ipython"; repo = "comm"; - rev = "refs/tags/${version}"; - hash = "sha256-Ve6tCvu89P5wUOj+vlzXItRR5RjJNKxItKnWP2fVk9U="; + rev = "refs/tags/v${version}"; + hash = "sha256-5IUE2g00GT231hjuM7mLPst0QTk2Y+Re302FRDq65C8="; }; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/ipywidgets/default.nix b/pkgs/development/python-modules/ipywidgets/default.nix index 2ee67e854896..5432d31c5472 100644 --- a/pkgs/development/python-modules/ipywidgets/default.nix +++ b/pkgs/development/python-modules/ipywidgets/default.nix @@ -13,12 +13,12 @@ buildPythonPackage rec { pname = "ipywidgets"; - version = "8.0.4"; + version = "8.0.6"; format = "setuptools"; src = fetchPypi { inherit pname version; - hash = "sha256-wABad6R9d4icr+2JK1jjO0oqlnEhVEBMZUjsIicoEeo="; + hash = "sha256-3n13nyBF1g3p9sJfZT/a4tuleJjmoShElLO6ILaJO7g="; }; propagatedBuildInputs = [ @@ -33,11 +33,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - # https://github.com/jupyter-widgets/ipywidgets/issues/3711 - "test_append_display_data" - ]; - meta = { description = "IPython HTML widgets for Jupyter"; homepage = "https://ipython.org/"; diff --git a/pkgs/development/python-modules/jupyterlab-widgets/default.nix b/pkgs/development/python-modules/jupyterlab-widgets/default.nix index 195a649a25a3..0e7a283b5da2 100644 --- a/pkgs/development/python-modules/jupyterlab-widgets/default.nix +++ b/pkgs/development/python-modules/jupyterlab-widgets/default.nix @@ -4,12 +4,12 @@ buildPythonPackage rec { pname = "jupyterlab-widgets"; - version = "3.0.5"; + version = "3.0.7"; src = fetchPypi { pname = "jupyterlab_widgets"; inherit version; - hash = "sha256-7q7N6vbAOvyWDdriAc7YjVl5tMqcOJG8uPZjGvcF9e8="; + hash = "sha256-w6UO1b9Sigx6hpCWUDr1RwL4bdodtGmu4cktwMAbQ8o="; }; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/widgetsnbextension/default.nix b/pkgs/development/python-modules/widgetsnbextension/default.nix index 65d5eebfeaa4..a27ebf2ec589 100644 --- a/pkgs/development/python-modules/widgetsnbextension/default.nix +++ b/pkgs/development/python-modules/widgetsnbextension/default.nix @@ -8,12 +8,12 @@ buildPythonPackage rec { pname = "widgetsnbextension"; - version = "4.0.5"; + version = "4.0.7"; format = "setuptools"; src = fetchPypi { inherit pname version; - hash = "sha256-AD9xbZMNOFvj/Z3kLdm/AI4wBT9zvd3iNdFPvq7/Ga8="; + hash = "sha256-6mfBenzUrjWPj0bDswTEBpi8BCNzLj8nMyHuFBIyyL4="; }; nativeBuildInputs = [