diff options
author | Sophie Tauchert <sophie@999eagle.moe> | 2024-03-24 16:45:04 +0100 |
---|---|---|
committer | Sophie Tauchert <sophie@999eagle.moe> | 2024-03-27 11:32:31 +0100 |
commit | 9ecd9e01e590ff2b872a7def08d8c4cd688585e5 (patch) | |
tree | ec76c0f976b3786006652a88d27b2234776fadb1 /pkgs | |
parent | 44d0940ea560dee511026a53f0e2e2cde489b4d4 (diff) |
python3Packages.nbdime: fix build for jupyter-server 2.13
see also the upstream issue for this: https://github.com/jupyter/nbdime/issues/749
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/nbdime/749.patch | 10 | ||||
-rw-r--r-- | pkgs/development/python-modules/nbdime/default.nix | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/nbdime/749.patch b/pkgs/development/python-modules/nbdime/749.patch new file mode 100644 index 0000000000000..b88aec0f67e31 --- /dev/null +++ b/pkgs/development/python-modules/nbdime/749.patch @@ -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: diff --git a/pkgs/development/python-modules/nbdime/default.nix b/pkgs/development/python-modules/nbdime/default.nix index 3f58201e2c927..855192fa5ec54 100644 --- a/pkgs/development/python-modules/nbdime/default.nix +++ b/pkgs/development/python-modules/nbdime/default.nix @@ -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 |