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

python311Packages.imagededup: fix pytest7 by ignoring warnings
This commit is contained in:
Sandro 2024-04-28 00:32:15 +02:00 committed by GitHub
commit 2058a82fb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,6 +14,7 @@
, torch , torch
, torchvision , torchvision
, tqdm , tqdm
, fetchpatch
}: }:
let let
MobileNetV3 = fetchurl { MobileNetV3 = fetchurl {
@ -77,6 +78,15 @@ buildPythonPackage rec {
"imagededup" "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; { meta = with lib; {
homepage = "https://idealo.github.io/imagededup/"; homepage = "https://idealo.github.io/imagededup/";
changelog = "https://github.com/idealo/imagededup/releases/tag/${src.rev}"; changelog = "https://github.com/idealo/imagededup/releases/tag/${src.rev}";