Files
nix-config/packages/python/wyzeapy/default.nix
mjallen18 bd799661b9 fix avahi
2026-03-31 13:33:42 -05:00

37 lines
755 B
Nix

{
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
}