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

python312Packages.invisible-watermark: use opencv-python

parent 9985ebb0
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
  buildPythonPackage,
  pythonOlder,
  fetchFromGitHub,
  opencv4,
  opencv-python,
  torch,
  onnx,
  onnxruntime,
@@ -30,7 +30,7 @@ buildPythonPackage rec {

  propagatedBuildInputs =
    [
      opencv4
      opencv-python
      torch
      pillow
      pywavelets
@@ -42,8 +42,6 @@ buildPythonPackage rec {
    ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace 'opencv-python>=4.1.0.25' 'opencv'
    substituteInPlace imwatermark/rivaGan.py --replace \
      'You can install it with pip: `pip install onnxruntime`.' \
      'You can install it with an override: `python3Packages.invisible-watermark.override { withOnnx = true; };`.'