depot/third_party/nixpkgs/pkgs/development/python-modules/jupyter-book/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

82 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.13.2";
format = "flit";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-wJWY0tBrlCkOFDfGZS4xWvv87sOlyrNl3fiGqgayqTs=";
};
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"
"myst-nb"
"sphinx"
];
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 ];
};
}