From ba873b2be6252a5144c9f37fae1341973ac155ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 6 Aug 2023 16:36:56 -0700 Subject: [PATCH] python310Packages.jupyter-nbextensions-configurator: make compatible with notebook v7 --- .../default.nix | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix b/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix index ef0ff175268f..c675542be108 100644 --- a/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix +++ b/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix @@ -1,7 +1,13 @@ { lib , buildPythonPackage , fetchFromGitHub +, fetchpatch , jupyter-contrib-core +, jupyter-core +, jupyter-server +, notebook +, pyyaml +, tornado }: buildPythonPackage rec { @@ -15,7 +21,23 @@ buildPythonPackage rec { hash = "sha256-ovKYHATRAC5a5qTMv32ohU2gJd15/fRKXa5HI0zGp/0="; }; - propagatedBuildInputs = [ jupyter-contrib-core ]; + patches = [ + # https://github.com/Jupyter-contrib/jupyter_nbextensions_configurator/pull/166 + (fetchpatch { + name = "notebook-v7-compat.patch"; + url = "https://github.com/Jupyter-contrib/jupyter_nbextensions_configurator/commit/a600cef9222ca0c61a6912eb29d8fa0323409705.patch"; + hash = "sha256-Rt9r5ZOgnhBcs18+ET5+k0/t980I2DiVN8oHkGLp0iw="; + }) + ]; + + propagatedBuildInputs = [ + jupyter-contrib-core + jupyter-core + jupyter-server + notebook + pyyaml + tornado + ]; pythonImportsCheck = [ "jupyter_nbextensions_configurator" ];