2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2024-01-25 14:12:00 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-11-16 04:20:00 +00:00
|
|
|
, fetchPypi
|
|
|
|
, emoji
|
|
|
|
, pydbus
|
|
|
|
, pygobject3
|
|
|
|
, unidecode
|
|
|
|
, setuptools
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mpris-server";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.4.2";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "mpris_server";
|
|
|
|
inherit version;
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-p3nM80fOMtRmeKvOXuX40Fu9xH8gPgYyneXbUS678fE=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
setuptools
|
|
|
|
];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
emoji
|
|
|
|
pydbus
|
|
|
|
pygobject3
|
|
|
|
unidecode
|
|
|
|
];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"emoji"
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|