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