Skip to content

Commit

Permalink
Merge pull request NixOS#286835 from dotlambda/py-aosmith-init
Browse files Browse the repository at this point in the history
home-assistant: support aosmith component
  • Loading branch information
mweinelt authored Feb 7, 2024
2 parents dac79a3 + df95102 commit e4da21f
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
42 changes: 42 additions & 0 deletions pkgs/development/python-modules/py-aosmith/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, aiohttp
}:

buildPythonPackage rec {
pname = "py-aosmith";
version = "1.0.6";
pyproject = true;

disabled = pythonOlder "3.10";

src = fetchFromGitHub {
owner = "bdr99";
repo = "py-aosmith";
rev = "refs/tags/${version}";
hash = "sha256-4KODe+urqYMbN0+tNwQnvO3A9Zc/Xdo4uhJErn3BYS4=";
};

nativeBuildInputs = [
poetry-core
];

propagatedBuildInputs = [
aiohttp
];

pythonImportsCheck = [ "py_aosmith" ];

# upstream has no tests
doCheck = false;

meta = {
description = "Python client library for A. O. Smith water heaters";
homepage = "https://github.com/bdr99/py-aosmith";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
4 changes: 3 additions & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@
"anwb_energie" = ps: with ps; [
];
"aosmith" = ps: with ps; [
]; # missing inputs: py-aosmith
py-aosmith
];
"apache_kafka" = ps: with ps; [
aiokafka
];
Expand Down Expand Up @@ -5752,6 +5753,7 @@
"androidtv_remote"
"anova"
"anthemav"
"aosmith"
"apache_kafka"
"apcupsd"
"api"
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8572,6 +8572,8 @@ self: super: with self; {

python-youtube = callPackage ../development/python-modules/python-youtube { };

py-aosmith = callPackage ../development/python-modules/py-aosmith { };

py-deprecate = callPackage ../development/python-modules/py-deprecate { };

py-ecc = callPackage ../development/python-modules/py-ecc { };
Expand Down

0 comments on commit e4da21f

Please sign in to comment.