nixpkgs/pkgs/development/python-modules/mpris-server/default.nix
annalee 0c900d5c6b
python311Packages.mpris-server: 0.8.1 -> 0.4.2; revert python-updates
mpris-server version 0.8+ uses python 3.12 typing syntax downgrade to a
version which still supports python 3.11
2024-03-19 08:32:15 +00:00

54 lines
998 B
Nix

{ lib
, buildPythonPackage
, pythonRelaxDepsHook
, 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 = [
pythonRelaxDepsHook
setuptools
];
propagatedBuildInputs = [
emoji
pydbus
pygobject3
unidecode
];
pythonRelaxDeps = [
"emoji"
];
pythonImportsCheck = [ "mpris_server" ];
# upstream has no tests
doCheck = false;
# update doesn't support python311 and monophony, the only consumer requires
# 0.4.2
passthru.skipBulkUpdate = true;
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 ];
};
}