2024-09-19 22:16:11 -04:00
|
|
|
{
|
2025-02-18 15:19:08 -05:00
|
|
|
# nix build inputs
|
|
|
|
lib,
|
2025-01-10 23:59:29 -05:00
|
|
|
buildHomeAssistantComponent,
|
2025-02-18 15:19:08 -05:00
|
|
|
spotifyplus-src,
|
|
|
|
# deps
|
2025-01-10 23:59:29 -05:00
|
|
|
python3Packages,
|
2024-09-19 22:16:11 -04:00
|
|
|
...
|
|
|
|
}: let
|
2025-01-10 23:59:29 -05:00
|
|
|
inherit (builtins) fromJSON readFile;
|
|
|
|
|
|
|
|
manifest = fromJSON (readFile "${spotifyplus-src}/custom_components/spotifyplus/manifest.json");
|
2024-09-19 22:16:11 -04:00
|
|
|
in
|
2025-01-10 23:59:29 -05:00
|
|
|
buildHomeAssistantComponent {
|
|
|
|
owner = "thlucas1";
|
|
|
|
|
|
|
|
inherit (manifest) domain version;
|
|
|
|
|
|
|
|
src = spotifyplus-src;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
oauthlib
|
|
|
|
platformdirs
|
|
|
|
requests
|
|
|
|
requests_oauthlib
|
|
|
|
soco
|
|
|
|
urllib3
|
|
|
|
zeroconf
|
|
|
|
smartinspect # overridden in python3Packages
|
|
|
|
spotifywebapi # overridden in python3Packages
|
|
|
|
];
|
2025-02-18 15:19:08 -05:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
homepage = "https://github.com/thlucas1/homeassistantcomponent_spotifyplus";
|
|
|
|
description = ''
|
|
|
|
Home Assistant integration for Spotify Player control, services,
|
|
|
|
and soundtouchplus integration support.
|
|
|
|
'';
|
|
|
|
};
|
2025-01-10 23:59:29 -05:00
|
|
|
}
|