python312Packages.docling-ibm-models: init at 2.0.3

This commit is contained in:
Pol Dellaiera 2024-11-02 22:03:25 +01:00
parent 44fc6841e9
commit f170df7763
2 changed files with 77 additions and 0 deletions
pkgs
development/python-modules/docling-ibm-models
top-level

View File

@ -0,0 +1,75 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
huggingface-hub,
jsonlines,
lxml,
mean-average-precision,
numpy,
opencv-python-headless,
pillow,
torch,
torchvision,
tqdm,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "docling-ibm-models";
version = "2.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "DS4SD";
repo = "docling-ibm-models";
rev = "refs/tags/v${version}";
hash = "sha256-vSEW1+mFTjUvjjUOoX3aGgT/y8iwP3JGIZaPh9RbX5I=";
};
build-system = [
poetry-core
];
dependencies = [
huggingface-hub
jsonlines
lxml
mean-average-precision
numpy
opencv-python-headless
pillow
torch
torchvision
tqdm
];
pythonRelaxDeps = [
"lxml"
"mean_average_precision"
"torchvision"
];
pythonImportsCheck = [
"docling_ibm_models"
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# Requires network access
"test_layoutpredictor"
"test_tf_predictor"
];
meta = {
changelog = "https://github.com/DS4SD/docling-ibm-models/blob/${src.rev}/CHANGELOG.md";
description = "Docling IBM models";
homepage = "https://github.com/DS4SD/docling-ibm-models";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ drupol ];
};
}

View File

@ -3688,6 +3688,8 @@ self: super: with self; {
dockerspawner = callPackage ../development/python-modules/dockerspawner { };
docling-ibm-models = callPackage ../development/python-modules/docling-ibm-models { };
docling-parse = callPackage ../development/python-modules/docling-parse {
loguru-cpp = pkgs.loguru;
};