2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
41 lines
782 B
Nix
41 lines
782 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, emoji
|
|
, pydbus
|
|
, pygobject3
|
|
, unidecode
|
|
, setuptools
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "mpris-server";
|
|
version = "0.4.2";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "mpris_server";
|
|
inherit version;
|
|
hash = "sha256-p3nM80fOMtRmeKvOXuX40Fu9xH8gPgYyneXbUS678fE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
emoji
|
|
pydbus
|
|
pygobject3
|
|
unidecode
|
|
];
|
|
|
|
pythonImportsCheck = [ "mpris_server" ];
|
|
|
|
# upstream has no tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Publish a MediaPlayer2 MPRIS device to D-Bus";
|
|
homepage = "https://pypi.org/project/mpris-server/";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ quadradical ];
|
|
};
|
|
}
|