From 1e99ef5ee6a76d24d4e7f51737d882f621acc2e5 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sat, 27 Apr 2024 21:20:00 +0200 Subject: [PATCH] python311Packages.imagededup: fix pytest7 by ignoring warnings --- pkgs/development/python-modules/imagededup/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/imagededup/default.nix b/pkgs/development/python-modules/imagededup/default.nix index 7b5be6e31709..a8de28de438e 100644 --- a/pkgs/development/python-modules/imagededup/default.nix +++ b/pkgs/development/python-modules/imagededup/default.nix @@ -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}";