Something went wrong. Try again.
lol
Something went wrong. Try again.
1.7 kB · 96 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697{ lib, buildPythonPackage, fetchFromGitHub,
# build-system poetry-core, setuptools,
# dependencies defusedxml, jsonref, jsonschema, latex2mathml, pandas, pillow, pydantic, pyyaml, semchunk, tabulate, transformers, tree-sitter, typer, typing-extensions,
# tests gitpython, jsondiff, pytestCheckHook, requests,}:
buildPythonPackage (finalAttrs: { pname = "docling-core"; version = "2.73.0"; pyproject = true;
src = fetchFromGitHub { owner = "docling-project"; repo = "docling-core"; tag = "v${finalAttrs.version}"; hash = "sha256-aK+XHZjKsmFPgRv0oDed1CdBwZags/zcALumgcfQjjY="; };
build-system = [ poetry-core setuptools ];
pythonRelaxDeps = [ "defusedxml" "pillow" "typer" ]; dependencies = [ defusedxml jsonref jsonschema latex2mathml pandas pillow pydantic pyyaml semchunk tabulate transformers tree-sitter typer typing-extensions ];
pythonImportsCheck = [ "docling_core" ];
nativeCheckInputs = [ gitpython jsondiff pytestCheckHook requests ];
disabledTestPaths = [ # attempts to download models "test/test_code_chunker.py" "test/test_code_chunking_strategy.py" "test/test_hybrid_chunker.py" "test/test_line_chunker.py" ];
meta = { changelog = "https://github.com/docling-project/docling-core/blob/${finalAttrs.src.tag}/CHANGELOG.md"; description = "Python library to define and validate data types in Docling"; homepage = "https://github.com/docling-project/docling-core"; license = lib.licenses.mit; maintainers = [ ]; };})