Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.8 kB · 138 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies click, jinja2, jsonschema, linkify-it-py, myst-nb, myst-parser, 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,
# tests jupytext, pytest-regressions, pytest-xdist, pytestCheckHook, sphinx-inline-tabs, texsoup, writableTmpDirAsHomeHook,}:
buildPythonPackage rec { pname = "jupyter-book"; version = "1.0.4"; pyproject = true;
src = fetchFromGitHub { owner = "jupyter-book"; repo = "jupyter-book"; tag = "v${version}"; hash = "sha256-04I9mzJMXCpvMiOeMD/Bg8FiymkRgHf/Yo9C1VcyTsw="; };
build-system = [ hatchling ];
pythonRelaxDeps = [ "myst-parser" "sphinx" ];
dependencies = [ click jinja2 jsonschema linkify-it-py myst-nb myst-parser 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 ];
pythonImportsCheck = [ "jupyter_book" "jupyter_book.cli.main" ];
nativeCheckInputs = [ jupytext pytest-regressions pytest-xdist pytestCheckHook sphinx-inline-tabs texsoup writableTmpDirAsHomeHook ];
disabledTests = [ # touch the network "test_create_from_cookiecutter"
# flaky? "test_execution_timeout"
# require texlive "test_toc" "test_toc_latex_parts" "test_toc_latex_urllink"
# AssertionError: assert 'There was an error in building your book' in '1' "test_build_errors"
# WARNING: Executing notebook failed: CellExecutionError [mystnb.exec] "test_build_dirhtml_from_template" "test_build_from_template" "test_build_page" "test_build_singlehtml_from_template"
# pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x115dcc9a0> # ResourceWarning: unclosed database in <sqlite3.Connection object at 0x115dcc9a0> "test_clean_book" "test_clean_html" "test_clean_html_latex" "test_clean_latex" ];
disabledTestPaths = [ # require texlive "tests/test_pdf.py" ];
__darwinAllowLocalNetworking = true;
meta = { description = "Build a book with Jupyter Notebooks and Sphinx"; homepage = "https://jupyterbook.org/"; changelog = "https://github.com/jupyter-book/jupyter-book/blob/${src.rev}/CHANGELOG.md"; license = lib.licenses.bsd3; teams = [ lib.teams.jupyter ]; mainProgram = "jupyter-book"; };}