Skip to content

Commit

Permalink
python312Packages.docling-core: init at 2.3.1
Browse files Browse the repository at this point in the history
Co-authored-by: Gaétan Lepage <[email protected]>
  • Loading branch information
drupol and GaetanLepage committed Nov 6, 2024
1 parent d600830 commit a8e86ee
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
59 changes: 59 additions & 0 deletions pkgs/development/python-modules/docling-core/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3680,6 +3680,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 {
Expand Down

0 comments on commit a8e86ee

Please sign in to comment.