nixos-configs/scopedPackages/hass-components/spotifyplus/default.nix
matt1432 13453f6839
All checks were successful
Discord / discord commits (push) Has been skipped
docs: add meta to all scoped packages
2025-02-18 15:19:08 -05:00

41 lines
960 B
Nix

{
# nix build inputs
lib,
buildHomeAssistantComponent,
spotifyplus-src,
# deps
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
soco
urllib3
zeroconf
smartinspect # overridden in python3Packages
spotifywebapi # overridden in python3Packages
];
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.
'';
};
}