fix avahi

This commit is contained in:
mjallen18
2026-03-31 13:33:42 -05:00
parent 6ca55504f0
commit bd799661b9
59 changed files with 3758 additions and 3829 deletions

View File

@@ -1,24 +1,38 @@
{ pkgs, fetchPypi, ... }:
pkgs.python3Packages.buildPythonPackage rec {
pname = "homeassistant_api";
version = "5.0.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-UNKTtgInrVJtjHb1WVlUbcbhjBOtTX00eHmm54ww0rY=";
};
{
lib,
namespace,
pkgs,
...
}:
let
inherit (lib.trivial) importJSON;
inherit (lib.${namespace}) selectVariant mkAllSources;
versionSpec = importJSON ./version.json;
selected = selectVariant versionSpec null null;
sources = mkAllSources pkgs selected;
version = selected.variables.version;
in
pkgs.python3Packages.buildPythonPackage {
pname = "homeassistant_api";
inherit version;
format = "pyproject";
src = sources.homeassistant_api;
# do not run tests
doCheck = false;
nativeBuildInputs = with pkgs.python3Packages; [
poetry-core
requests-cache
];
dependencies = with pkgs.python3Packages; [
requests-cache
pydantic
websockets
];
propagatedBuildInputs = with pkgs.python3Packages; [
aiohttp
aiohttp-client-cache
@@ -28,11 +42,13 @@ pkgs.python3Packages.buildPythonPackage rec {
simplejson
websockets
];
pythonRelaxDeps = [
"requests-cache"
"pydantic"
"websockets"
];
pythonImportsCheck = [
"homeassistant_api"
];