1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 emoji,
6 pydbus,
7 pygobject3,
8 unidecode,
9 setuptools,
10}:
11buildPythonPackage rec {
12 pname = "mpris-server";
13 version = "0.4.2";
14 pyproject = true;
15
16 src = fetchPypi {
17 pname = "mpris_server";
18 inherit version;
19 hash = "sha256-p3nM80fOMtRmeKvOXuX40Fu9xH8gPgYyneXbUS678fE=";
20 };
21
22 nativeBuildInputs = [
23 setuptools
24 ];
25
26 propagatedBuildInputs = [
27 emoji
28 pydbus
29 pygobject3
30 unidecode
31 ];
32
33 pythonRelaxDeps = [ "emoji" ];
34
35 pythonImportsCheck = [ "mpris_server" ];
36
37 # upstream has no tests
38 doCheck = false;
39
40 # update doesn't support python311 and monophony, the only consumer requires
41 # 0.4.2
42 passthru.skipBulkUpdate = true;
43
44 meta = with lib; {
45 description = "Publish a MediaPlayer2 MPRIS device to D-Bus";
46 homepage = "https://pypi.org/project/mpris-server/";
47 license = licenses.agpl3Only;
48 maintainers = with maintainers; [ quadradical ];
49 };
50}