{ lib, namespace, pkgs, buildHomeAssistantComponent, home-assistant, ... }: let inherit (lib.trivial) importJSON; inherit (lib.${namespace}) selectVariant mkAllSources; versionSpec = importJSON ./version.json; selected = selectVariant versionSpec null null; sources = mkAllSources pkgs selected; src-meta = selected.sources.icloud3; version = if src-meta ? tag then src-meta.tag else src-meta.rev; in buildHomeAssistantComponent { owner = src-meta.owner; domain = "icloud3"; inherit version; src = sources.icloud3; nativeBuildInputs = with home-assistant.python.pkgs; [ fido2 srp ]; meta = { changelog = "https://github.com/gcobb321/icloud3/releases/tag/${version}"; description = "Cloud3 is a device tracker custom component that tracks your iPhones, iPads and Apple Watches. Devices in the Family Sharing List and the HA Mobile App Integration are trackable."; homepage = "https://github.com/gcobb321/icloud3"; maintainers = [ ]; }; }