Files
nixpkgs/pkgs/development/python-modules/docling-core/default.nix
T
2025-02-16 16:46:15 +00:00

83 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
# dependencies
jsonref,
jsonschema,
pandas,
pillow,
pydantic,
tabulate,
pyyaml,
semchunk,
typing-extensions,
transformers,
typer,
latex2mathml,
jsondiff,
requests,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "docling-core";
version = "2.18.1";
pyproject = true;
src = fetchFromGitHub {
owner = "DS4SD";
repo = "docling-core";
tag = "v${version}";
hash = "sha256-ymFBR+nz/zq6EFgCbSQPfZDQ/Gk8QeJrkeVQ7KZ9bmo=";
};
build-system = [
poetry-core
];
dependencies = [
jsonschema
pydantic
jsonref
tabulate
pandas
pillow
pyyaml
typing-extensions
transformers
semchunk
typer
latex2mathml
];
pythonRelaxDeps = [
"pillow"
"typer"
];
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 = with lib.maintainers; [ drupol ];
};
}