homee-assistant-custom-components: use dependencies

The dependencies attribute is a bit more lightweight than
propagatedBuildInputs and what we prefer in the Python ecosystem.
This commit is contained in:
Martin Weinelt
2024-12-12 02:25:20 +01:00
parent 0add05081f
commit 58567f642d
18 changed files with 19 additions and 19 deletions
@@ -8,7 +8,7 @@ It builds upon `buildPythonPackage` but uses a custom install and check
phase.
Python runtime dependencies can be directly consumed as unqualified
function arguments. Pass them into `propagatedBuildInputs`, for them to
function arguments. Pass them into `dependencies`, for them to
be available to Home Assistant.
Out-of-tree components need to use Python packages from
@@ -31,7 +31,7 @@ buildHomeAssistantComponent {
# owner, repo, rev, hash
};
propagatedBuildInputs = [
dependencies = [
# python requirements, as specified in manifest.json
];
@@ -17,7 +17,7 @@ buildHomeAssistantComponent rec {
hash = "sha256-Yq8mKk2j2CHyHvwyej0GeFQhuy1MFXwt0o+lDOGwrBU=";
};
propagatedBuildInputs = [
dependencies = [
ulid-transform
];
@@ -17,7 +17,7 @@ buildHomeAssistantComponent rec {
hash = "sha256-ucSaQWMS6ZwXHnw5Ct/STxpl1JjBRua3edrLvBAsdyw=";
};
propagatedBuildInputs = [
dependencies = [
requests
];
@@ -22,7 +22,7 @@ buildHomeAssistantComponent rec {
substituteInPlace custom_components/bodymiscale/manifest.json --replace-fail 'cachetools==5.3.0' 'cachetools>=5.3.0'
'';
propagatedBuildInputs = [
dependencies = [
cachetools
];
@@ -17,7 +17,7 @@ buildHomeAssistantComponent rec {
hash = "sha256-6NrRuBjpulT66pVUfW9ujULL5HSzfgyic1pKEBRupNA=";
};
propagatedBuildInputs = [
dependencies = [
pyemvue
];
@@ -17,7 +17,7 @@ buildHomeAssistantComponent rec {
hash = "sha256-PY3udPgvsaXdDRh4+NQmVlqhERswcMpaJTq5azaUFf4=";
};
propagatedBuildInputs = [
dependencies = [
beautifulsoup4
];
@@ -18,7 +18,7 @@ buildHomeAssistantComponent {
hash = "sha256-KqbP6TpH9B0/AjtsW5TcWSNgUhND+w8rO6X8fHqtsDI=";
};
propagatedBuildInputs = [
dependencies = [
garminconnect
tzlocal
];
@@ -30,7 +30,7 @@ buildHomeAssistantComponent {
dontBuild = true;
propagatedBuildInputs = [
dependencies = [
govee-led-wez
];
@@ -18,7 +18,7 @@ buildHomeAssistantComponent rec {
hash = "sha256-JyyJPI0lbZLJj+016WgS1KXU5rnxUmRMafel4/wKsYk=";
};
propagatedBuildInputs = [ libgpiod ];
dependencies = [ libgpiod ];
meta = with lib; {
description = "Home Assistant GPIO custom integration";
@@ -17,7 +17,7 @@ buildHomeAssistantComponent rec {
hash = "sha256-Fl8qwsW9NdjnYdu7IGQDelXTLqNx5ioUoxkhv+p5L0I=";
};
propagatedBuildInputs = [ midea-beautiful-air ];
dependencies = [ midea-beautiful-air ];
meta = with lib; {
description = "Home Assistant custom component adding support for controlling Midea air conditioners and dehumidifiers on local network";
@@ -17,7 +17,7 @@ buildHomeAssistantComponent rec {
hash = "sha256-LGpCT0a6mxbf0W6ucTIBhl9aNUd5/1dUk6M+CzRKuoU=";
};
propagatedBuildInputs = [
dependencies = [
moonraker-api
];
@@ -17,7 +17,7 @@ buildHomeAssistantComponent rec {
hash = "sha256-OGCAJsAsnUjwaLR8lCBdU+ghVOGFF0mT73t5JtcngUA=";
};
propagatedBuildInputs = [
dependencies = [
requests
];
@@ -17,7 +17,7 @@ buildHomeAssistantComponent rec {
hash = "sha256-O1NxT7u27xLydPqEqH72laU0tlYVrMPo0TwWIVNJ+0Q=";
};
propagatedBuildInputs = [
dependencies = [
omnikinverter
];
@@ -16,7 +16,7 @@ buildHomeAssistantComponent rec {
hash = "sha256-NbK9h0nvcWNSwsc04YgjqKl+InijxftPJ3SLCQF/Hns=";
};
propagatedBuildInputs = [
dependencies = [
websockets
];
@@ -29,7 +29,7 @@ buildHomeAssistantComponent rec {
})
];
propagatedBuildInputs = [
dependencies = [
aiofiles
broadlink
];
@@ -19,7 +19,7 @@ buildHomeAssistantComponent rec {
hash = "sha256-mcxXBnVGrlVxbSi+IwmGJiWqy5PlQmHQl+hgW6i7NFc=";
};
propagatedBuildInputs = [
dependencies = [
charset-normalizer
pycountry
xmltodict
@@ -18,7 +18,7 @@ buildHomeAssistantComponent rec {
hash = "sha256-0tLyRQ5KIL3NDAKK8nr8ZrgN/uh8YdGA7iSNJwEIxis=";
};
propagatedBuildInputs = [ zigpy ];
dependencies = [ zigpy ];
dontBuild = true;
@@ -17,7 +17,7 @@ buildHomeAssistantComponent rec {
hash = "sha256-uhyUQebAx4g1PT/urbyx8EZNFE9vIY0bUAKmgCwY3aQ=";
};
propagatedBuildInputs = [ pysmartthings ];
dependencies = [ pysmartthings ];
meta = with lib; {
description = "HomeAssistant integration for Samsung Soundbars";