2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-08-10 07:59:29 +00:00
|
|
|
, fetchpatch
|
2023-08-04 22:07:22 +00:00
|
|
|
, jupyter-contrib-core
|
2023-08-10 07:59:29 +00:00
|
|
|
, jupyter-core
|
|
|
|
, jupyter-server
|
|
|
|
, notebook
|
|
|
|
, pyyaml
|
|
|
|
, tornado
|
2023-08-22 20:05:09 +00:00
|
|
|
, nose
|
|
|
|
, pytestCheckHook
|
|
|
|
, selenium
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter-nbextensions-configurator";
|
|
|
|
version = "0.6.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jupyter-contrib";
|
|
|
|
repo = "jupyter_nbextensions_configurator";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-ovKYHATRAC5a5qTMv32ohU2gJd15/fRKXa5HI0zGp/0=";
|
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
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
|
|
|
|
];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
nose
|
|
|
|
pytestCheckHook
|
|
|
|
selenium
|
|
|
|
];
|
|
|
|
|
|
|
|
# Those tests fails upstream
|
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/test_application.py"
|
|
|
|
"tests/test_jupyterhub.py"
|
|
|
|
"tests/test_nbextensions_configurator.py"
|
|
|
|
];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
pythonImportsCheck = [ "jupyter_nbextensions_configurator" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A jupyter notebook serverextension providing config interfaces for nbextensions";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "jupyter-nbextensions_configurator";
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://github.com/jupyter-contrib/jupyter_nbextensions_configurator";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
|
|
};
|
|
|
|
}
|