Skip to content

Commit

Permalink
python3Packages.nbdime: fix build for jupyter-server 2.13
Browse files Browse the repository at this point in the history
see also the upstream issue for this: jupyter/nbdime#749
  • Loading branch information
999eagle committed Mar 27, 2024
1 parent 44d0940 commit 9ecd9e0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkgs/development/python-modules/nbdime/749.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/nbdime/webapp/nbdimeserver.py
+++ b/nbdime/webapp/nbdimeserver.py
@@ -388,6 +388,7 @@
'jinja2_env': env,
'local_hostnames': ['localhost', '127.0.0.1'],
'cookie_secret': base64.encodebytes(os.urandom(32)), # Needed even for an unsecured server.
+ 'allow_unauthenticated_access': True,
}

try:
6 changes: 6 additions & 0 deletions pkgs/development/python-modules/nbdime/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ buildPythonPackage rec {
hash = "sha256-8adgwLAMG6m0lFwWzpJXfzk/tR0YTzUbdoW6boUCCY4=";
};

patches = [
# this fixes the webserver (nbdiff-web) when jupyter-server >=2.13 is used
# see https://github.com/jupyter/nbdime/issues/749
./749.patch
];

nativeBuildInputs = [
hatch-jupyter-builder
hatchling
Expand Down

0 comments on commit 9ecd9e0

Please sign in to comment.