nixos-configs/legacyPackages/hass-components/spotifyplus/default.nix
matt1432 41707ac4ae
All checks were successful
Discord / discord commits (push) Has been skipped
feat(hass): package spotifyplus
2024-09-19 22:16:11 -04:00

28 lines
667 B
Nix

{
spotifyplus-src,
buildHomeAssistantComponent,
python3Packages,
...
}: let
inherit (builtins) fromJSON readFile;
manifest = fromJSON (readFile "${spotifyplus-src}/custom_components/spotifyplus/manifest.json");
in
buildHomeAssistantComponent {
owner = "thlucas1";
inherit (manifest) domain version;
src = spotifyplus-src;
propagatedBuildInputs = with python3Packages; [
oauthlib
platformdirs
requests
requests_oauthlib
zeroconf
smartinspect # overridden in this python3Packages
spotifywebapi # overridden in this python3Packages
urllib3 # overridden in this python3Packages
];
}