Something went wrong. Try again.
lol
Something went wrong. Try again.
1.9 kB · 107 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system hatchling, poetry-core,
# dependencies docling, pydantic-settings, typer, boto3, pandas, fastparquet, pyarrow, httpx,
# optional dependencies ray, rq, msgpack,
# tests pytestCheckHook, pytest-asyncio, writableTmpDirAsHomeHook,}:
buildPythonPackage rec { pname = "docling-jobkit"; version = "1.8.1"; pyproject = true;
src = fetchFromGitHub { owner = "docling-project"; repo = "docling-jobkit"; tag = "v${version}"; hash = "sha256-9DzQY/XMmx/8XP1bMYZYl+Bp7AVcYfuv3MtO6lvQ/24="; };
build-system = [ hatchling poetry-core ];
dependencies = [ docling pydantic-settings typer boto3 pandas fastparquet pyarrow httpx ];
optional-dependencies = { ray = [ ray ]; rq = [ rq msgpack ]; };
pythonRelaxDeps = [ "boto3" "pandas" "pyarrow" ];
pythonImportsCheck = [ "docling" "docling_jobkit" ];
nativeCheckInputs = [ pytestCheckHook pytest-asyncio writableTmpDirAsHomeHook ] ++ optional-dependencies.rq;
disabledTests = [ # requires network access "test_chunk_file" "test_convert_file" "test_convert_warmup" "test_convert_url" "test_replicated_convert" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Flaky due to comparison with magic object # https://github.com/docling-project/docling-jobkit/issues/45 "test_options_validator" ];
meta = { changelog = "https://github.com/docling-project/docling-jobkit/blob/${src.tag}/CHANGELOG.md"; description = "Running a distributed job processing documents with Docling"; homepage = "https://github.com/docling-project/docling-jobkit"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ codgician ]; };}