Unverified Commit 2058a82f authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #307286 from Stunkymonkey/python-imagededup-pytest-none

python311Packages.imagededup: fix pytest7 by ignoring warnings
parents e37fd33d 1e99ef5e
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@
, torch
, torchvision
, tqdm
, fetchpatch
}:
let
  MobileNetV3 = fetchurl {
@@ -77,6 +78,15 @@ buildPythonPackage rec {
    "imagededup"
  ];

  patches = [
    # https://github.com/idealo/imagededup/pull/217
    (fetchpatch {
      name = "pytest-warnings-none.patch";
      url = "https://github.com/idealo/imagededup/commit/e2d7a21568e3115acd0632af569549c511ad5c0d.patch";
      hash = "sha256-AQwJpU3Ag6ONRAw0z8so5icW4fRpMHuBOMT5X+HsQ2w=";
    })
  ];

  meta = with lib; {
    homepage = "https://idealo.github.io/imagededup/";
    changelog = "https://github.com/idealo/imagededup/releases/tag/${src.rev}";