nixos-configs/scopedPackages/hass-components/spotifyplus/default.nix

42 lines
960 B
Nix
Raw Normal View History

2024-09-19 22:16:11 -04:00
{
2025-02-18 15:19:08 -05:00
# nix build inputs
lib,
buildHomeAssistantComponent,
2025-02-18 15:19:08 -05:00
spotifyplus-src,
# deps
python3Packages,
2024-09-19 22:16:11 -04:00
...
}: let
inherit (builtins) fromJSON readFile;
manifest = fromJSON (readFile "${spotifyplus-src}/custom_components/spotifyplus/manifest.json");
2024-09-19 22:16:11 -04:00
in
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.
'';
};
}