{ lib, buildPythonPackage, fetchFromGitHub, # build-system poetry-core, setuptools, # dependencies jsonref, jsonschema, latex2mathml, pandas, pillow, pydantic, pyyaml, semchunk, tabulate, transformers, typer, typing-extensions, # tests jsondiff, pytestCheckHook, requests, }: buildPythonPackage rec { pname = "docling-core"; version = "2.48.4"; pyproject = true; src = fetchFromGitHub { owner = "docling-project"; repo = "docling-core"; tag = "v${version}"; hash = "sha256-nGV0/8lL+JCGml8TF8+wBRax4WsAXQ0+f8fzy5k2gZI="; }; build-system = [ poetry-core setuptools ]; dependencies = [ jsonref jsonschema latex2mathml pandas pillow pydantic pyyaml semchunk tabulate transformers typer typing-extensions ]; pythonRelaxDeps = [ "pillow" ]; pythonImportsCheck = [ "docling_core" ]; nativeCheckInputs = [ jsondiff pytestCheckHook requests ]; disabledTestPaths = [ # attempts to download models "test/test_hybrid_chunker.py" ]; meta = { changelog = "https://github.com/DS4SD/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"; license = lib.licenses.mit; maintainers = [ ]; }; }