diff --git a/pkgs/development/python-modules/mpris-server/default.nix b/pkgs/development/python-modules/mpris-server/default.nix new file mode 100644 index 000000000000..12c21f90cd9e --- /dev/null +++ b/pkgs/development/python-modules/mpris-server/default.nix @@ -0,0 +1,44 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + emoji, + pydbus, + pygobject3, + unidecode, + setuptools, + strenum, +}: +buildPythonPackage rec { + pname = "mpris-server"; + version = "0.9.6"; + pyproject = true; + + src = fetchPypi { + pname = "mpris_server"; + inherit version; + hash = "sha256-T0ZeDQiYIAhKR8aw3iv3rtwzc+R0PTQuIh6+Hi4rIHQ="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + emoji + pydbus + pygobject3 + strenum + unidecode + ]; + + pythonImportsCheck = [ "mpris_server" ]; + + # upstream has no tests + doCheck = false; + + meta = { + description = "Publish a MediaPlayer2 MPRIS device to D-Bus"; + homepage = "https://pypi.org/project/mpris-server/"; + license = lib.licenses.agpl3Only; + maintainers = with lib.maintainers; [ quadradical ]; + }; +} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index a7520ae5352d..ec17f0928394 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -346,7 +346,6 @@ mapAliases { monarchmoney = throw "'monarchmoney' has been renamed to/replaced by 'monarchmoneycommunity'"; # Added 2026-03-05 monkeytype = throw "'monkeytype' has been removed as it was unmaintained upstream"; # Added 2026-04-19 moretools = "'moretools' has been removed because it is unmaintained"; # Added 2026-01-19 - mpris-server = throw "mpris-server was removed because it is unused"; # added 2025-10-31 msldap-bad = throw "'msldap-bad' has been renamed to/replaced by 'badldap'"; # added 2025-11-06 mullvad-closest = throw "'mullvad-closest' has been removed as it was unmaintained. Consider using 'mullvad-compass' instead."; # Added 2026-01-13 multi_key_dict = throw "'multi_key_dict' has been renamed to/replaced by 'multi-key-dict'"; # Converted to throw 2025-10-29 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ce82af5e3179..6fef5cdd3477 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10397,6 +10397,8 @@ self: super: with self; { mpris-api = callPackage ../development/python-modules/mpris-api { }; + mpris-server = callPackage ../development/python-modules/mpris-server { }; + mprisify = callPackage ../development/python-modules/mprisify { }; mpv = callPackage ../development/python-modules/mpv { inherit (pkgs) mpv; };