2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, flit-core
|
2023-02-09 11:40:11 +00:00
|
|
|
, pythonRelaxDepsHook
|
2022-07-14 12:49:19 +00:00
|
|
|
, click
|
|
|
|
, docutils
|
|
|
|
, jinja2
|
|
|
|
, jsonschema
|
|
|
|
, linkify-it-py
|
|
|
|
, myst-nb
|
|
|
|
, 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";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.15.1";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-ihY07Bb37t7g0Rbx5ft8SCAyia2S2kLglRnccdlWwBA=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
docutils
|
|
|
|
jinja2
|
|
|
|
jsonschema
|
|
|
|
linkify-it-py
|
|
|
|
myst-nb
|
|
|
|
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
|
|
|
pythonRelaxDeps = [
|
|
|
|
"docutils"
|
2023-04-29 16:46:19 +00:00
|
|
|
"sphinx-design"
|
2023-02-09 11:40:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"jupyter_book"
|
|
|
|
];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|