4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
81 lines
1.4 KiB
Nix
81 lines
1.4 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, flit-core
|
|
, pythonRelaxDepsHook
|
|
, 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";
|
|
version = "0.14.0";
|
|
|
|
format = "flit";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-BxrVrOsCqFRmx16l6YdkJplwdnU2XhRFMHd5DGy+dqE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
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
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"docutils"
|
|
"sphinx-book-theme"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"jupyter_book"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Build a book with Jupyter Notebooks and Sphinx";
|
|
homepage = "https://jupyterbook.org/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ marsam ];
|
|
};
|
|
}
|