Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 87 lines
Nix
at flake-libs
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ lib, buildPythonPackage, fetchFromGitHub,
# build-system poetry-core,
# 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.31.2"; pyproject = true;
src = fetchFromGitHub { owner = "docling-project"; repo = "docling-core"; tag = "v${version}"; hash = "sha256-O0GfEoWImDjehCPb8erBdY2gYalj2im8rxdJKEsbUs4="; };
build-system = [ poetry-core ];
dependencies = [ jsonref jsonschema latex2mathml pandas pillow pydantic pyyaml semchunk tabulate transformers typer typing-extensions ];
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 ]; };}