python3Packages.nbdime: fix build for jupyter-server 2.13

see also the upstream issue for this: https://github.com/jupyter/nbdime/issues/749
This commit is contained in:
Sophie Tauchert 2024-03-24 16:45:04 +01:00
parent 44d0940ea5
commit 9ecd9e01e5
No known key found for this signature in database
GPG Key ID: 52701DE5F5F51125
2 changed files with 16 additions and 0 deletions

View File

@ -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:

View File

@ -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