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

34 lines
796 B
Nix
Raw Normal View History

2024-09-19 22:16:11 -04:00
{
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;
prePatch = ''
substituteInPlace ./custom_components/spotifyplus/manifest.json \
--replace-warn "urllib3>=1.21.1,<1.27" "urllib3>=1.21.1"
'';
2024-09-19 22:16:11 -04:00
propagatedBuildInputs = with python3Packages; [
oauthlib
platformdirs
requests
requests_oauthlib
zeroconf
smartinspect # overridden in this python3Packages
spotifywebapi # overridden in this python3Packages
urllib3
2024-09-19 22:16:11 -04:00
];
}