2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
flit-core,
|
|
|
|
click,
|
|
|
|
jinja2,
|
|
|
|
jsonschema,
|
|
|
|
linkify-it-py,
|
|
|
|
myst-nb,
|
|
|
|
myst-parser,
|
|
|
|
pyyaml,
|
|
|
|
sphinx,
|
|
|
|
sphinx-comments,
|
|
|
|
sphinx-copybutton,
|
|
|
|
sphinx-external-toc,
|
|
|
|
sphinx-jupyterbook-latex,
|
|
|
|
sphinx-design,
|
|
|
|
sphinx-thebe,
|
|
|
|
sphinx-book-theme,
|
|
|
|
sphinx-togglebutton,
|
|
|
|
sphinxcontrib-bibtex,
|
|
|
|
sphinx-multitoc-numbering,
|
2022-07-14 12:49:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter-book";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.0.2";
|
2024-02-07 01:22:34 +00:00
|
|
|
pyproject = true;
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-02-07 01:22:34 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "jupyter_book";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-rRXuSanf7Hc6HTBJ2sOFY4KqL5txRKGAEUduZcEbX0Y=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
jinja2
|
|
|
|
jsonschema
|
|
|
|
linkify-it-py
|
|
|
|
myst-nb
|
2024-02-07 01:22:34 +00:00
|
|
|
myst-parser
|
2022-07-14 12:49:19 +00:00
|
|
|
pyyaml
|
|
|
|
sphinx
|
|
|
|
sphinx-comments
|
|
|
|
sphinx-copybutton
|
|
|
|
sphinx-external-toc
|
|
|
|
sphinx-jupyterbook-latex
|
|
|
|
sphinx-design
|
|
|
|
sphinx-thebe
|
|
|
|
sphinx-book-theme
|
|
|
|
sphinx-togglebutton
|
|
|
|
sphinxcontrib-bibtex
|
|
|
|
sphinx-multitoc-numbering
|
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"jupyter_book"
|
2024-02-07 01:22:34 +00:00
|
|
|
"jupyter_book.cli.main"
|
2023-02-09 11:40:11 +00:00
|
|
|
];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Build a book with Jupyter Notebooks and Sphinx";
|
2023-02-09 11:40:11 +00:00
|
|
|
homepage = "https://jupyterbook.org/";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/executablebooks/jupyter-book/blob/v${version}/CHANGELOG.md";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.bsd3;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2024-02-07 01:22:34 +00:00
|
|
|
mainProgram = "jupyter-book";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
}
|