2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, flit-core
|
|
|
|
, 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
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter-book";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.0.0";
|
|
|
|
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";
|
|
|
|
hash = "sha256-U5xdBJNUYgDZ3ie9S1936uoDEV+JN/gl1P+Cs4AamH4=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +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;
|
|
|
|
maintainers = with maintainers; [ marsam ];
|
2024-02-07 01:22:34 +00:00
|
|
|
mainProgram = "jupyter-book";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
}
|