{ lib, namespace, pkgs, 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.wyzeapy; in home-assistant.python.pkgs.buildPythonPackage { pname = "wyzeapy"; version = if src-meta ? tag then src-meta.tag else src-meta.rev; format = "pyproject"; src = sources.wyzeapy; build-system = with home-assistant.python.pkgs; [ poetry-core hatchling ]; dependencies = with home-assistant.python.pkgs; [ aiodns aiohttp pycryptodome ]; doCheck = false; # no tests in the PyPI tarball }