diff --git a/pkgs/applications/audio/mopidy/local.nix b/pkgs/applications/audio/mopidy/local.nix index 6cbb8424d35..de748ea7b32 100644 --- a/pkgs/applications/audio/mopidy/local.nix +++ b/pkgs/applications/audio/mopidy/local.nix @@ -1,6 +1,7 @@ { lib , mopidy , python3Packages +, fetchpatch }: python3Packages.buildPythonApplication rec { @@ -21,6 +22,14 @@ python3Packages.buildPythonApplication rec { python3Packages.pytestCheckHook ]; + patches = [ + # Fix tests for Mopidy≥3.1.0. Remove with the next release. + (fetchpatch { + url = "https://github.com/mopidy/mopidy-local/commit/f1d7598d3a9587f0823acb97ecb615f4f4817fd2.patch"; + sha256 = "193kd5zwsr0qpp2y8icdy13vqpglmjdm7x1rw5hliwyq18a34vjp"; + }) + ]; + meta = with lib; { homepage = "https://github.com/mopidy/mopidy-local"; description = "Mopidy extension for playing music from your local music archive";