python310Packages.unstructured-inference: use opencv-python

This commit is contained in:
Robert Schütz
2024-11-02 17:20:04 -07:00
parent 7c2ed11f83
commit 30732b37b7
@@ -6,7 +6,7 @@
layoutparser,
python-multipart,
huggingface-hub,
opencv,
opencv-python,
onnxruntime,
transformers,
detectron2,
@@ -33,17 +33,12 @@ buildPythonPackage rec {
hash = "sha256-2k7gFlBUevVnz2A5pvUE4eIGmXwEr5s4F8BbX6j5lzc=";
};
postPatch = ''
substituteInPlace requirements/base.in \
--replace "opencv-python" "opencv"
'';
propagatedBuildInputs =
[
layoutparser
python-multipart
huggingface-hub
opencv
opencv-python
onnxruntime
transformers
detectron2