mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-10 06:04:14 +00:00
Merge pull request #298668 from 999eagle/fix/python-nbdime
python3Packages.nbdime: fix build for jupyter-server 2.13
This commit is contained in:
commit
a28896bc1c
10
pkgs/development/python-modules/nbdime/749.patch
Normal file
10
pkgs/development/python-modules/nbdime/749.patch
Normal 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:
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user