24 buildPythonPackage rec {
25 pname = "unstructured-inference";
27 format = "setuptools";
29 src = fetchFromGitHub {
30 owner = "Unstructured-IO";
31 repo = "unstructured-inference";
32 rev = "refs/tags/${version}";
33 hash = "sha256-2k7gFlBUevVnz2A5pvUE4eIGmXwEr5s4F8BbX6j5lzc=";
36 propagatedBuildInputs =
48 ++ layoutparser.optional-dependencies.layoutmodels ++ layoutparser.optional-dependencies.tesseract;
62 export HOME=$(mktemp -d)
66 # not sure why this fails
67 "test_get_path_oob_move_deeply_nested"
68 "test_get_path_oob_move_nested[False]"
75 "test_unstructured_inference/inference/test_layout.py"
76 "test_unstructured_inference/models/test_chippermodel.py"
77 "test_unstructured_inference/models/test_detectron2.py"
78 "test_unstructured_inference/models/test_detectron2onnx.py"
80 "test_unstructured_inference/models/test_donut.py"
81 "test_unstructured_inference/models/test_model.py"
82 "test_unstructured_inference/models/test_tables.py"
85 pythonImportsCheck = [ "unstructured_inference" ];
88 description = "hosted model inference code for layout parsing models";
89 homepage = "https://github.com/Unstructured-IO/unstructured-inference";
90 changelog = "https://github.com/Unstructured-IO/unstructured-inference/blob/${src.rev}/CHANGELOG.md";
91 license = licenses.asl20;
92 maintainers = with maintainers; [ happysalada ];