Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 88 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{ 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.44.1"; pyproject = true;
src = fetchFromGitHub { owner = "docling-project"; repo = "docling-core"; tag = "v${version}"; hash = "sha256-vZTQE8UACMdMPPvNM2FVu+Sq9uJByt443N3ScNXsjGc="; };
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 = with lib.maintainers; [ drupol ]; };}