nixos-configs/scopedPackages/hass-components/tuya-local/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

33 lines
698 B
Nix

{
# nix build inputs
lib,
buildHomeAssistantComponent,
tuya-local-src,
# deps
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
];
meta = {
license = lib.licenses.mit;
homepage = "https://github.com/make-all/tuya-local";
description = ''
Local support for Tuya devices in Home Assistant.
'';
};
}