Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 96 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697{ lib, buildPythonPackage, fetchFromGitHub,
# build-system poetry-core,
# dependencies accelerate, docling-core, huggingface-hub, jsonlines, numpy, opencv-python-headless, pillow, pydantic, rtree, safetensors, torch, torchvision, tqdm, transformers,
# tests datasets, pytestCheckHook, writableTmpDirAsHomeHook,}:
buildPythonPackage rec { pname = "docling-ibm-models"; version = "3.9.0"; pyproject = true;
src = fetchFromGitHub { owner = "docling-project"; repo = "docling-ibm-models"; tag = "v${version}"; hash = "sha256-UmgxEPEm6fNf4FbZ7CIcSEIaJg4sReI0pnkWwPdrJvQ="; };
build-system = [ poetry-core ];
dependencies = [ accelerate docling-core huggingface-hub jsonlines numpy opencv-python-headless pillow pydantic rtree safetensors torch torchvision tqdm transformers ];
pythonRelaxDeps = [ "jsonlines" "numpy" "transformers" ];
pythonImportsCheck = [ "docling_ibm_models" ];
nativeCheckInputs = [ datasets pytestCheckHook writableTmpDirAsHomeHook ];
disabledTests = [ # Requires network access "test_code_formula_predictor" # huggingface_hub.errors.LocalEntryNotFoundError "test_figure_classifier" # huggingface_hub.errors.LocalEntryNotFoundError "test_layoutpredictor" "test_readingorder" "test_tf_predictor" ];
meta = { changelog = "https://github.com/DS4SD/docling-ibm-models/blob/${src.tag}/CHANGELOG.md"; description = "Docling IBM models"; homepage = "https://github.com/DS4SD/docling-ibm-models"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ drupol ]; };}