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
This commit is contained in:
Philip Taron
2026-01-23 11:28:04 -08:00
parent ecdb2e3a81
commit 2ef0d21562
@@ -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 = [ ];
};