From cb1263d018251deb35514240105e8f7b95129e96 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Mon, 2 Mar 2026 16:42:21 -0800 Subject: [PATCH] python3Packages.unstructured-inference: fix build --- .../python-modules/unstructured-inference/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/unstructured-inference/default.nix b/pkgs/development/python-modules/unstructured-inference/default.nix index dc9162b7732a..99a00417a5c2 100644 --- a/pkgs/development/python-modules/unstructured-inference/default.nix +++ b/pkgs/development/python-modules/unstructured-inference/default.nix @@ -5,13 +5,11 @@ setuptools, # runtime dependencies accelerate, - detectron2, huggingface-hub, layoutparser, onnx, onnxruntime, opencv-python, - paddleocr, python-multipart, rapidfuzz, transformers, @@ -39,6 +37,11 @@ buildPythonPackage rec { build-system = [ setuptools ]; + pythonRelaxDeps = [ + # Wants >= 4.13.0.90 but the latest release is 4.13.0 + "opencv-python" + ]; + dependencies = [ accelerate huggingface-hub