From 808cfccb66d49301985d734d6e1e0c41da176b0d Mon Sep 17 00:00:00 2001 From: happysalada Date: Wed, 6 Sep 2023 04:02:45 -0400 Subject: [PATCH] python310Packages.unstructured-inference: add paddleocr dependency --- .../python-modules/unstructured-inference/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/unstructured-inference/default.nix b/pkgs/development/python-modules/unstructured-inference/default.nix index e03d2a6f4544..58b49828d1e0 100644 --- a/pkgs/development/python-modules/unstructured-inference/default.nix +++ b/pkgs/development/python-modules/unstructured-inference/default.nix @@ -9,6 +9,7 @@ , onnxruntime , transformers , detectron2 +, paddleocr # check inputs , pytestCheckHook , coverage @@ -44,7 +45,7 @@ buildPythonPackage rec { onnxruntime transformers detectron2 - # paddleocr + paddleocr # yolox ] ++ layoutparser.optional-dependencies.layoutmodels @@ -71,8 +72,6 @@ buildPythonPackage rec { "test_get_path_oob_move_nested[False]" # requires yolox "test_yolox" - # requires paddleocr - "test_table_prediction" ]; disabledTestPaths = [ @@ -90,10 +89,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "unstructured_inference" ]; meta = with lib; { - description = ""; + description = "hosted model inference code for layout parsing models"; homepage = "https://github.com/Unstructured-IO/unstructured-inference"; changelog = "https://github.com/Unstructured-IO/unstructured-inference/blob/${src.rev}/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ happysalada ]; + platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ]; }; }