summary refs log tree commit diff
path: root/pkgs/applications/audio/mopidy
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-01-19 09:19:47 +0800
committerGitHub <noreply@github.com>2023-01-19 09:19:47 +0800
commitcdf1ea55a9268dc378d0afe151a76ffea67ff0cb (patch)
tree76fa45f7bf9126910676cf8df13df32d60b05d6e /pkgs/applications/audio/mopidy
parent53404668048b1856ea85a7f0e954720886ac4ec0 (diff)
parent500f3b94c3f033bf7bd07c0c675b62df8e30828b (diff)
downloadnixpkgs-cdf1ea55a9268dc378d0afe151a76ffea67ff0cb.tar
nixpkgs-cdf1ea55a9268dc378d0afe151a76ffea67ff0cb.tar.gz
nixpkgs-cdf1ea55a9268dc378d0afe151a76ffea67ff0cb.tar.bz2
nixpkgs-cdf1ea55a9268dc378d0afe151a76ffea67ff0cb.tar.lz
nixpkgs-cdf1ea55a9268dc378d0afe151a76ffea67ff0cb.tar.xz
nixpkgs-cdf1ea55a9268dc378d0afe151a76ffea67ff0cb.tar.zst
nixpkgs-cdf1ea55a9268dc378d0afe151a76ffea67ff0cb.zip
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.nix2
-rw-r--r--pkgs/applications/audio/mopidy/tidal.nix35
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/audio/mopidy/default.nix b/pkgs/applications/audio/mopidy/default.nix
index 645817a9061..053be90621d 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 00000000000..1264e5963a9
--- /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 ];
+  };
+}
+
+