From 78399b66f1979eb3bc078adc69994ab335ae66fc Mon Sep 17 00:00:00 2001 From: D Anzorge Date: Sat, 5 Nov 2022 02:58:46 +0100 Subject: [PATCH] picard: add patch to fix failing test --- pkgs/applications/audio/picard/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/applications/audio/picard/default.nix b/pkgs/applications/audio/picard/default.nix index ae81b13597e1..9db6656dd38d 100644 --- a/pkgs/applications/audio/picard/default.nix +++ b/pkgs/applications/audio/picard/default.nix @@ -1,6 +1,7 @@ { lib , python3Packages , fetchFromGitHub +, fetchpatch , gettext , chromaprint , qt5 @@ -27,6 +28,15 @@ pythonPackages.buildPythonApplication rec { sha256 = "sha256-KUHciIlwaKXvyCCkAzdh1vpe9cunDizrMUl0SoCpxgY="; }; + patches = [ + # fix for tests failing with newer mutagen, remove after >2.8.3 + # https://tickets.metabrainz.org/browse/PICARD-2583 + (fetchpatch { + url = "https://github.com/metabrainz/picard/commit/76c2dff6b61140bbc7675c9e9f62a086b885e539.patch"; + hash = "sha256-V1/oq1tEcb1mtqbYAA9o7mJcw16vRO0IK3GGmJkwO1Q="; + }) + ]; + nativeBuildInputs = [ gettext qt5.wrapQtAppsHook qt5.qtbase ] ++ lib.optionals (pyqt5.multimediaEnabled) [ qt5.qtmultimedia.bin