about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2023-08-06 16:36:56 -0700
committerRobert Schütz <nix@dotlambda.de>2023-08-06 16:44:47 -0700
commitba873b2be6252a5144c9f37fae1341973ac155ae (patch)
tree966dd5a40db453f7fec0391a4fc2d78e4c213b6d /pkgs
parent35aa2915806b604dc25e2c3842746c12614c2e07 (diff)
downloadnixlib-ba873b2be6252a5144c9f37fae1341973ac155ae.tar
nixlib-ba873b2be6252a5144c9f37fae1341973ac155ae.tar.gz
nixlib-ba873b2be6252a5144c9f37fae1341973ac155ae.tar.bz2
nixlib-ba873b2be6252a5144c9f37fae1341973ac155ae.tar.lz
nixlib-ba873b2be6252a5144c9f37fae1341973ac155ae.tar.xz
nixlib-ba873b2be6252a5144c9f37fae1341973ac155ae.tar.zst
nixlib-ba873b2be6252a5144c9f37fae1341973ac155ae.zip
python310Packages.jupyter-nbextensions-configurator: make compatible with notebook v7
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix24
1 files changed, 23 insertions, 1 deletions
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" ];