nixos-configs/scopedPackages/hass-components/tuya-local/default.nix
matt1432 838df34dfb
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: rename legacyPackages to scopedPackages
2024-11-20 15:17:55 -05:00

22 lines
456 B
Nix

{
tuya-local-src,
buildHomeAssistantComponent,
python3Packages,
...
}: let
inherit (builtins) fromJSON readFile;
manifest = fromJSON (readFile "${tuya-local-src}/custom_components/tuya_local/manifest.json");
in
buildHomeAssistantComponent {
owner = "make-all";
inherit (manifest) domain version;
src = tuya-local-src;
propagatedBuildInputs = with python3Packages; [
tinytuya
tuya-device-sharing-sdk
];
}