159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ lib
|
|
, buildHomeAssistantComponent
|
|
, fetchFromGitHub
|
|
, toPythonModule
|
|
, async-timeout
|
|
, music-assistant
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
, pytest-cov-stub
|
|
, pytest-homeassistant-custom-component
|
|
}:
|
|
|
|
buildHomeAssistantComponent rec {
|
|
owner = "music-assistant";
|
|
domain = "mass";
|
|
version = "2024.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "music-assistant";
|
|
repo = "hass-music-assistant";
|
|
rev = version;
|
|
hash = "sha256-lrJx2wsVY0aJ+iVBxbZryC6QRvaXdxjBsTma/4ptl4o=";
|
|
};
|
|
|
|
dependencies = [
|
|
async-timeout
|
|
(toPythonModule music-assistant)
|
|
];
|
|
|
|
dontCheckManifest = true; # expects music-assistant 2.0.6, we have 2.0.7
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
pytest-cov-stub
|
|
pytest-homeassistant-custom-component
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players";
|
|
homepage = "https://github.com/music-assistant/hass-music-assistant";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|