python312Packages.docling-core: init at 2.3.1

This commit is contained in:
Pol Dellaiera 2024-11-06 22:58:47 +01:00
parent f170df7763
commit 6487438e99
2 changed files with 61 additions and 0 deletions
pkgs
development/python-modules/docling-core
top-level

View File

@ -0,0 +1,59 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
jsonref,
jsonschema,
pandas,
pillow,
pydantic,
tabulate,
jsondiff,
requests,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "docling-core";
version = "2.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "DS4SD";
repo = "docling-core";
rev = "refs/tags/v${version}";
hash = "sha256-yNsmMAeR1sbZsddpjMFWZy2UAbIWWiZmdW4/lwLvCbM=";
};
build-system = [
poetry-core
];
dependencies = [
jsonref
jsonschema
pandas
pillow
pydantic
tabulate
];
pythonImportsCheck = [
"docling_core"
];
nativeCheckInputs = [
jsondiff
pytestCheckHook
requests
];
meta = {
changelog = "https://github.com/DS4SD/docling-core/blob/${version}/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 ];
};
}

View File

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