2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
ipython-genutils,
|
|
|
|
jupyter-contrib-core,
|
|
|
|
jupyter-highlight-selected-word,
|
|
|
|
jupyter-nbextensions-configurator,
|
|
|
|
lxml,
|
|
|
|
nose,
|
|
|
|
pytestCheckHook,
|
|
|
|
notebook,
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter-contrib-nbextensions";
|
|
|
|
version = "0.7.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ipython-contrib";
|
|
|
|
repo = "jupyter_contrib_nbextensions";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-1o8tBfRw6jNcKfNE7xXrQaEhx+KOv7mLOruvuMDtJ1Q=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-10-19 13:55:26 +00:00
|
|
|
ipython-genutils
|
2023-08-04 22:07:22 +00:00
|
|
|
jupyter-contrib-core
|
|
|
|
jupyter-highlight-selected-word
|
|
|
|
jupyter-nbextensions-configurator
|
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
nose
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Thoses tests fail upstream because of nbconvert being too recent
|
|
|
|
# https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1606
|
|
|
|
"tests/test_exporters.py"
|
|
|
|
|
|
|
|
# Requires to run jupyter which is not feasible here
|
|
|
|
"tests/test_application.py"
|
|
|
|
];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
pythonImportsCheck = [ "jupyter_contrib_nbextensions" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Collection of various notebook extensions for Jupyter";
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://github.com/ipython-contrib/jupyter_contrib_nbextensions";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
2023-08-22 20:05:09 +00:00
|
|
|
# https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1647
|
|
|
|
broken = versionAtLeast notebook.version "7";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
}
|