depot/third_party/nixpkgs/pkgs/servers/home-assistant/custom-components/mass/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

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.9.1";
src = fetchFromGitHub {
owner = "music-assistant";
repo = "hass-music-assistant";
rev = version;
hash = "sha256-8YZ77SYv8hDsbKUjxPZnuAycLE8RkIbAq3HXk+OyAmM=";
};
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 ];
};
}