Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mopidy-mpris #38842

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3631,6 +3631,11 @@
github = "ctheune";
name = "Christian Theune";
};
thorerik = {
name = "Thor Erik Lie";
email = "thor@thorerik.com";
github = "thorerik";
};
thoughtpolice = {
email = "aseipp@pobox.com";
github = "thoughtpolice";
Expand Down
29 changes: 29 additions & 0 deletions pkgs/applications/audio/mopidy-mpris/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ stdenv, pythonPackages, mopidy, gst_all_1, glib-networking, gobjectIntrospection }:

pythonPackages.buildPythonApplication rec {
pname = "Mopidy-MPRIS";
version = "1.4.0";

src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "0y90k3yzv8lq5g3lxfh4fys7bsmdvqgnwx2kjr00w5j3zrhmfcpa";
};

buildInputs = with gst_all_1; [
gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad
glib-networking gobjectIntrospection
];

propagatedBuildInputs = with pythonPackages; [ mopidy ];

checkInputs = with pythonPackages; [ pytest mock gst-python pygobject3 pykka tornado requests ];
checkPhase = ''
py.test
'';

meta = with stdenv.lib; {
description = "Mopidy extension for controlling Mopidy via dbus";
license = licenses.asl20;
maintainers = [ maintainers.thorerik ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16772,6 +16772,8 @@ with pkgs;

mopidy-mopify = callPackage ../applications/audio/mopidy-mopify { };

mopidy-mpris = callPackage ../applications/audio/mopidy-mpris { };

mopidy-spotify-tunigo = callPackage ../applications/audio/mopidy-spotify-tunigo { };

mopidy-youtube = callPackage ../applications/audio/mopidy-youtube { };
Expand Down