docling: 2.31.2 -> 2.41.0 (#425736)

This commit is contained in:
Yt 2025-07-16 07:23:30 -04:00 committed by GitHub
commit 6acc670eb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 19 additions and 12 deletions

View File

@ -5,6 +5,7 @@
# build-system # build-system
poetry-core, poetry-core,
setuptools,
# dependencies # dependencies
jsonref, jsonref,
@ -28,18 +29,19 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "docling-core"; pname = "docling-core";
version = "2.31.2"; version = "2.43.0";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "docling-project"; owner = "docling-project";
repo = "docling-core"; repo = "docling-core";
tag = "v${version}"; tag = "v${version}";
hash = "sha256-O0GfEoWImDjehCPb8erBdY2gYalj2im8rxdJKEsbUs4="; hash = "sha256-c9TaX4INfTfR3ZpmXbOteHr2R2jAbVzvMk8tO1XV4Nc=";
}; };
build-system = [ build-system = [
poetry-core poetry-core
setuptools
]; ];
dependencies = [ dependencies = [
@ -59,7 +61,6 @@ buildPythonPackage rec {
pythonRelaxDeps = [ pythonRelaxDeps = [
"pillow" "pillow"
"typer"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [

View File

@ -1,6 +1,5 @@
{ {
lib, lib,
stdenv,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
@ -15,6 +14,7 @@
opencv-python-headless, opencv-python-headless,
pillow, pillow,
pydantic, pydantic,
rtree,
safetensors, safetensors,
torch, torch,
torchvision, torchvision,
@ -29,14 +29,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "docling-ibm-models"; pname = "docling-ibm-models";
version = "3.4.4"; version = "3.8.1";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "docling-project"; owner = "docling-project";
repo = "docling-ibm-models"; repo = "docling-ibm-models";
tag = "v${version}"; tag = "v${version}";
hash = "sha256-a2y4vXgALPRtLhdH0Tqqht1gpdcfa1Gv4puthKDMk7U="; hash = "sha256-Yogg71CXQTdF5OUbdbma1rQxtLudTLjyOIFe2LS9CpI=";
}; };
build-system = [ build-system = [
@ -51,6 +51,7 @@ buildPythonPackage rec {
opencv-python-headless opencv-python-headless
pillow pillow
pydantic pydantic
rtree
safetensors safetensors
torch torch
torchvision torchvision

View File

@ -13,6 +13,7 @@
uvicorn, uvicorn,
websockets, websockets,
tesserocr, tesserocr,
typer,
rapidocr-onnxruntime, rapidocr-onnxruntime,
onnxruntime, onnxruntime,
torch, torch,
@ -28,14 +29,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "docling-serve"; pname = "docling-serve";
version = "0.11.0"; version = "0.14.0";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "docling-project"; owner = "docling-project";
repo = "docling-serve"; repo = "docling-serve";
tag = "v${version}"; tag = "v${version}";
hash = "sha256-dPCD7Ovc6Xiga+gYOwg0mJIIhHywVOyxKIAFF5XUsYw="; hash = "sha256-R8W/FXKj2wLJOcjwIsna/2wFOLGM80Qr3WlYPJTTSNU=";
}; };
postPatch = '' postPatch = ''
@ -53,7 +54,7 @@ buildPythonPackage rec {
]; ];
pythonRemoveDeps = [ pythonRemoveDeps = [
"mlx-vlm" # not yet avainable on nixpkgs "mlx-vlm" # not yet available on nixpkgs
]; ];
dependencies = dependencies =
@ -63,6 +64,7 @@ buildPythonPackage rec {
httpx httpx
pydantic-settings pydantic-settings
python-multipart python-multipart
typer
uvicorn uvicorn
websockets websockets
] ]

View File

@ -52,14 +52,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "docling"; pname = "docling";
version = "2.31.2"; version = "2.41.0";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "docling-project"; owner = "docling-project";
repo = "docling"; repo = "docling";
tag = "v${version}"; tag = "v${version}";
hash = "sha256-a2PZORT4Umf6AI3yEDDcUD0tm22Ahzm7Dwij/5ZUjNs="; hash = "sha256-GD052HCqBLs+KUkOUOVdlXxS6+PD2pthGtz+zdQ6QnM=";
}; };
build-system = [ build-system = [
@ -102,7 +102,6 @@ buildPythonPackage rec {
pythonRelaxDeps = [ pythonRelaxDeps = [
"pillow" "pillow"
"typer"
]; ];
optional-dependencies = { optional-dependencies = {
@ -160,10 +159,14 @@ buildPythonPackage rec {
"test_convert_stream" "test_convert_stream"
"test_compare_legacy_output" "test_compare_legacy_output"
"test_ocr_coverage_threshold" "test_ocr_coverage_threshold"
"test_formula_conversion_with_page_range"
# requires network access # requires network access
"test_page_range" "test_page_range"
"test_parser_backends" "test_parser_backends"
"test_confidence"
"test_e2e_webp_conversions"
"test_asr_pipeline_conversion"
# AssertionError: pred_itxt==true_itxt # AssertionError: pred_itxt==true_itxt
"test_e2e_valid_csv_conversions" "test_e2e_valid_csv_conversions"