diff --git a/pkgs/applications/audio/mopidy/local.nix b/pkgs/applications/audio/mopidy/local.nix index 4e9b18d7eb65..f32d9e3a3456 100644 --- a/pkgs/applications/audio/mopidy/local.nix +++ b/pkgs/applications/audio/mopidy/local.nix @@ -2,6 +2,7 @@ , lib , mopidy , python3Packages +, fetchpatch }: python3Packages.buildPythonApplication rec { @@ -13,6 +14,15 @@ python3Packages.buildPythonApplication rec { sha256 = "18w39mxpv8p17whd6zfw5653d21q138f8xd6ili6ks2g2dbm25i9"; }; + patches = [ + # Fix tests with newer Mopidy versions >=3.4.0 -- mopidy/mopidy-local#69 + (fetchpatch { + name = "update-tests-for-mopidy-3.4.0.patch"; + url = "https://github.com/mopidy/mopidy-local/commit/f2c198f8eb253f62100afc58f652e73a76d5a090.patch"; + hash = "sha256-jrlZc/pd00S5q9nOfV1OXu+uP/SvH+Xbi7U52aZajj4="; + }) + ]; + propagatedBuildInputs = [ mopidy python3Packages.uritools