deface: use opencv-python

This commit is contained in:
Robert Schütz 2024-11-02 17:40:03 -07:00
parent ea60f68a87
commit e4467c1cc8

View File

@ -29,7 +29,7 @@ python3.pkgs.buildPythonApplication rec {
numpy
onnx
onnxruntime # Nixpkgs onnxruntime is missing CUDA support
opencv4
opencv-python
scikit-image
tqdm
];
@ -39,11 +39,6 @@ python3.pkgs.buildPythonApplication rec {
''--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ pkgs.onnxruntime ]}"''
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "opencv-python" "opencv"
'';
pythonImportsCheck = [ "deface" "onnx" "onnxruntime" ];
meta = {