1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 jsonref,
7 jsonschema,
8 pandas,
9 pillow,
10 pydantic,
11 tabulate,
12 jsondiff,
13 requests,
14 pytestCheckHook,
15}:
16
17buildPythonPackage rec {
18 pname = "docling-core";
19 version = "2.3.2";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "DS4SD";
24 repo = "docling-core";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-N8rL+5bCVF4Qi5eqgkaB2r3LTYoqTVPeK4gQ6stiW/w=";
27 };
28
29 build-system = [
30 poetry-core
31 ];
32
33 dependencies = [
34 jsonref
35 jsonschema
36 pandas
37 pillow
38 pydantic
39 tabulate
40 ];
41
42 pythonRelaxDeps = [
43 "pillow"
44 ];
45
46 pythonImportsCheck = [
47 "docling_core"
48 ];
49
50 nativeCheckInputs = [
51 jsondiff
52 pytestCheckHook
53 requests
54 ];
55
56 meta = {
57 changelog = "https://github.com/DS4SD/docling-core/blob/${version}/CHANGELOG.md";
58 description = "Python library to define and validate data types in Docling";
59 homepage = "https://github.com/DS4SD/docling-core";
60 license = lib.licenses.mit;
61 maintainers = with lib.maintainers; [ drupol ];
62 };
63}