From 7f0c19ce2b9018ce049ca855d8b087a154ecbc4c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 28 Apr 2025 14:15:41 +0200 Subject: [PATCH] python312Packages.jupyter-book: 1.0.3 -> 1.0.4 Diff: https://github.com/jupyter-book/jupyter-book/compare/refs/tags/v1.0.3...refs/tags/v1.0.4 Changelog: https://github.com/jupyter-book/jupyter-book/blob/refs/tags/v1.0.4/CHANGELOG.md --- .../python-modules/jupyter-book/default.nix | 64 +++++++++++-------- 1 file changed, 38 insertions(+), 26 deletions(-) diff --git a/pkgs/development/python-modules/jupyter-book/default.nix b/pkgs/development/python-modules/jupyter-book/default.nix index 254909ce832d..018aa8e3c3b8 100644 --- a/pkgs/development/python-modules/jupyter-book/default.nix +++ b/pkgs/development/python-modules/jupyter-book/default.nix @@ -1,11 +1,11 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, - pythonOlder, # build-system - flit-core, + hatchling, # dependencies click, @@ -34,25 +34,27 @@ pytestCheckHook, sphinx-inline-tabs, texsoup, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { pname = "jupyter-book"; - version = "1.0.3"; + version = "1.0.4"; pyproject = true; - disabled = pythonOlder "3.9"; - src = fetchFromGitHub { owner = "jupyter-book"; repo = "jupyter-book"; tag = "v${version}"; - hash = "sha256-MBSf2/+4+efWHJ530jdezeh5OLTtUZlAEOl5SqoWOuE="; + hash = "sha256-04I9mzJMXCpvMiOeMD/Bg8FiymkRgHf/Yo9C1VcyTsw="; }; - build-system = [ flit-core ]; + build-system = [ hatchling ]; - pythonRelaxDeps = [ "myst-parser" ]; + pythonRelaxDeps = [ + "myst-parser" + "sphinx" + ]; dependencies = [ click @@ -87,27 +89,37 @@ buildPythonPackage rec { pytestCheckHook sphinx-inline-tabs texsoup + writableTmpDirAsHomeHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; + disabledTests = + [ + # touch the network + "test_create_from_cookiecutter" - disabledTests = [ - # touch the network - "test_create_from_cookiecutter" - # flaky? - "test_execution_timeout" - # require texlive - "test_toc" - "test_toc_latex_parts" - "test_toc_latex_urllink" - # WARNING: Executing notebook failed: CellExecutionError [mystnb.exec] - "test_build_dirhtml_from_template" - "test_build_from_template" - "test_build_page" - "test_build_singlehtml_from_template" - ]; + # 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" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # pytest.PytestUnraisableExceptionWarning: Exception ignored in: + # ResourceWarning: unclosed database in + "test_clean_html_latex" + "test_clean_latex" + ]; disabledTestPaths = [ # require texlive