diff options
author | Nick Cao <nickcao@nichi.co> | 2023-01-19 09:19:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-19 09:19:47 +0800 |
commit | cdf1ea55a9268dc378d0afe151a76ffea67ff0cb (patch) | |
tree | 76fa45f7bf9126910676cf8df13df32d60b05d6e /pkgs/applications/audio/mopidy | |
parent | 53404668048b1856ea85a7f0e954720886ac4ec0 (diff) | |
parent | 500f3b94c3f033bf7bd07c0c675b62df8e30828b (diff) |
Merge pull request #211284 from rodrgz/mopidy-tidal
mopidy-tidal: init at 0.3.2
Diffstat (limited to 'pkgs/applications/audio/mopidy')
-rw-r--r-- | pkgs/applications/audio/mopidy/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/audio/mopidy/tidal.nix | 35 |
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/audio/mopidy/default.nix b/pkgs/applications/audio/mopidy/default.nix index 645817a906166..053be90621d77 100644 --- a/pkgs/applications/audio/mopidy/default.nix +++ b/pkgs/applications/audio/mopidy/default.nix @@ -37,6 +37,8 @@ lib.makeScope newScope (self: with self; { mopidy-soundcloud = callPackage ./soundcloud.nix { }; + mopidy-tidal = callPackage ./tidal.nix { }; + mopidy-tunein = callPackage ./tunein.nix { }; mopidy-youtube = callPackage ./youtube.nix { }; diff --git a/pkgs/applications/audio/mopidy/tidal.nix b/pkgs/applications/audio/mopidy/tidal.nix new file mode 100644 index 0000000000000..1264e5963a907 --- /dev/null +++ b/pkgs/applications/audio/mopidy/tidal.nix @@ -0,0 +1,35 @@ +{ lib +, python3Packages +, mopidy +}: + +python3Packages.buildPythonApplication rec { + pname = "Mopidy-Tidal"; + version = "0.3.2"; + + src = python3Packages.fetchPypi { + inherit pname version; + hash = "sha256-ekqhzKyU2WqTOeRR1ZSZA9yW3UXsLBsC2Bk6FZrQgmc="; + }; + + propagatedBuildInputs = [ + mopidy + python3Packages.tidalapi + ]; + + checkInputs = with python3Packages; [ + pytestCheckHook + pytest-mock + ]; + + pytestFlagsArray = [ "tests/" ]; + + meta = with lib; { + description = "Mopidy extension for playing music from Tidal"; + homepage = "https://github.com/tehkillerbee/mopidy-tidal"; + license = licenses.mit; + maintainers = [ maintainers.rodrgz ]; + }; +} + + |