mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-15 01:33:50 +00:00
I assume quadradical doesn't want to re-assume maintainership simply because I reverted the package drop for my own purposes.
(cherry picked from commit 261eac2ed0)
52 lines
1018 B
Nix
52 lines
1018 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
emoji,
|
|
pydbus,
|
|
pygobject3,
|
|
unidecode,
|
|
setuptools,
|
|
strenum,
|
|
}:
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "mpris-server";
|
|
version = "0.9.6";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "mpris_server";
|
|
inherit (finalAttrs) version;
|
|
hash = "sha256-T0ZeDQiYIAhKR8aw3iv3rtwzc+R0PTQuIh6+Hi4rIHQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace mpris_server/__init__.py \
|
|
--replace-fail \
|
|
"__version__: Final[str] = '0.9.0'" \
|
|
"__version__: Final[str] = '${finalAttrs.version}'"
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
emoji
|
|
pydbus
|
|
pygobject3
|
|
strenum
|
|
unidecode
|
|
];
|
|
|
|
pythonImportsCheck = [ "mpris_server" ];
|
|
|
|
# upstream has no tests
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Publish a MediaPlayer2 MPRIS device to D-Bus";
|
|
homepage = "https://pypi.org/project/mpris-server/";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = with lib.maintainers; [ pbsds ];
|
|
};
|
|
})
|