2024-09-30 12:06:05 -04:00
|
|
|
{
|
2025-01-10 23:59:29 -05:00
|
|
|
tuya-local-src,
|
|
|
|
buildHomeAssistantComponent,
|
|
|
|
python3Packages,
|
2024-09-30 12:06:05 -04:00
|
|
|
...
|
|
|
|
}: let
|
2025-01-10 23:59:29 -05:00
|
|
|
inherit (builtins) fromJSON readFile;
|
|
|
|
|
|
|
|
manifest = fromJSON (readFile "${tuya-local-src}/custom_components/tuya_local/manifest.json");
|
2024-09-30 12:06:05 -04:00
|
|
|
in
|
2025-01-10 23:59:29 -05:00
|
|
|
buildHomeAssistantComponent {
|
|
|
|
owner = "make-all";
|
|
|
|
|
|
|
|
inherit (manifest) domain version;
|
|
|
|
|
|
|
|
src = tuya-local-src;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
tinytuya
|
|
|
|
tuya-device-sharing-sdk
|
|
|
|
];
|
|
|
|
}
|