From 2ef0d215621ff03cb8de34c1ca7b468cd4d16fd0 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Fri, 23 Jan 2026 11:28:04 -0800 Subject: [PATCH] python3Packages.docling-core: 2.50.1 -> 2.60.2 Changes: - Add tree-sitter dependency (now required for code chunking) - Add gitpython to test dependencies - Disable tests that require network access to download models - Update meta URLs from DS4SD to docling-project This update relaxes the typer version constraint from <0.20.0 to <0.22.0, fixing the build of llama-index-node-parser-docling and other packages that depend on docling-core. https://github.com/docling-project/docling-core/releases --- .../python-modules/docling-core/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/docling-core/default.nix b/pkgs/development/python-modules/docling-core/default.nix index 9c5cac247c5f..1beaa994f696 100644 --- a/pkgs/development/python-modules/docling-core/default.nix +++ b/pkgs/development/python-modules/docling-core/default.nix @@ -18,10 +18,12 @@ semchunk, tabulate, transformers, + tree-sitter, typer, typing-extensions, # tests + gitpython, jsondiff, pytestCheckHook, requests, @@ -29,14 +31,14 @@ buildPythonPackage rec { pname = "docling-core"; - version = "2.50.1"; + version = "2.60.2"; pyproject = true; src = fetchFromGitHub { owner = "docling-project"; repo = "docling-core"; tag = "v${version}"; - hash = "sha256-pLIWskl5nXdOC5UwvfJ3Yhl8qV6jg42P89gLj7ASpTA="; + hash = "sha256-KrWeh5b3w1dBk3l7S1FpgONWqP9gS6nhbLIly3Nbtvg="; }; build-system = [ @@ -55,6 +57,7 @@ buildPythonPackage rec { semchunk tabulate transformers + tree-sitter typer typing-extensions ]; @@ -68,6 +71,7 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ + gitpython jsondiff pytestCheckHook requests @@ -75,13 +79,15 @@ buildPythonPackage rec { disabledTestPaths = [ # attempts to download models + "test/test_code_chunker.py" + "test/test_code_chunking_strategy.py" "test/test_hybrid_chunker.py" ]; meta = { - changelog = "https://github.com/DS4SD/docling-core/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/docling-project/docling-core/blob/${src.tag}/CHANGELOG.md"; description = "Python library to define and validate data types in Docling"; - homepage = "https://github.com/DS4SD/docling-core"; + homepage = "https://github.com/docling-project/docling-core"; license = lib.licenses.mit; maintainers = [ ]; };