python310Packages.jupyter-nbextensions-configurator: make compatible with notebook v7
This commit is contained in:
@@ -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" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user