38 lines
907 B
Nix
38 lines
907 B
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication {
|
|
pname = "hassbridge";
|
|
version = "unstable-2024-08-10";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rytilahti";
|
|
repo = "homeassistant-mpris-bridge";
|
|
rev = "b62f87033be971d265e1e112dc9a3a38dc65bbbd";
|
|
hash = "sha256-M68H806wQtsgqWeRH4j07dk1E5PzT7e0oEtsE6cl+c0=";
|
|
};
|
|
|
|
patches = [ ./0001-fix-xesam-artist.patch ];
|
|
|
|
nativeBuildInputs = [ python3.pkgs.poetry-core ];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
anyio
|
|
asyncclick
|
|
dbus-next
|
|
websockets
|
|
];
|
|
|
|
# pythonImportsCheck = [ "homeassistant_mpris_bridge" ];
|
|
|
|
meta = with lib; {
|
|
description = "Control your Home Assistant media players from your desktop using MPRIS";
|
|
homepage = "https://github.com/rytilahti/homeassistant-mpris-bridge";
|
|
license = licenses.gpl3Only;
|
|
mainProgram = "hassbridge";
|
|
};
|
|
}
|