Files
nixpkgs/pkgs/development/python-modules/jupyter-book/default.nix
T
Martin Weinelt 18eeca26f1 python311Packages.jupyter-book: update relaxed deps
Checking runtime dependencies for jupyter_book-0.15.1-py3-none-any.whl
  - myst-nb~=0.17.1 not satisifeid by version 1.0.0
  - sphinx<6,>=4 not satisifeid by version 7.2.6
  - sphinx-external-toc~=0.3.1 not satisifeid by version 1.0.0
  - sphinx-thebe~=0.2.0 not satisifeid by version 0.3.0
  - sphinxcontrib-bibtex<=2.5.0,>=2.2.0 not satisifeid by version 2.6.1
2023-12-20 20:10:31 +01:00

86 lines
1.5 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.15.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-ihY07Bb37t7g0Rbx5ft8SCAyia2S2kLglRnccdlWwBA=";
};
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"
"sphinx-thebe"
"sphinxcontrib-bibtex"
];
pythonImportsCheck = [
"jupyter_book"
];
meta = with lib; {
description = "Build a book with Jupyter Notebooks and Sphinx";
homepage = "https://jupyterbook.org/";
changelog = "https://github.com/executablebooks/jupyter-book/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ marsam ];
};
}