Commit e4467c1c authored by Robert Schütz's avatar Robert Schütz
Browse files

deface: use opencv-python

parent ea60f68a
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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 = {