Skip to content

Commit

Permalink
home-assistant: support wolflink component (NixOS#372417)
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored Jan 9, 2025
2 parents ce38994 + cd58ef1 commit 650b66b
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
47 changes: 47 additions & 0 deletions pkgs/development/python-modules/wolf-comm/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
aiohttp,
buildPythonPackage,
fetchFromGitHub,
httpx,
lib,
lxml,
pkce,
setuptools,
shortuuid,
}:

buildPythonPackage rec {
pname = "wolf-comm";
version = "0.0.19";
pyproject = true;

src = fetchFromGitHub {
owner = "janrothkegel";
repo = "wolf-comm";
tag = version;
hash = "sha256-majkiDGyR6qHMi6VmlopWAJK7rXPPR5TeAw6gPjiCw8=";
};

build-system = [ setuptools ];

dependencies = [
aiohttp
httpx
lxml
pkce
shortuuid
];

pythonImportsCheck = [ "wolf_comm" ];

# upstream has no tests
doCheck = false;

meta = {
changelog = "https://github.com/janrothkegel/wolf-comm/releases/tag/${src.tag}";
description = "Communicate with Wolf SmartSet Cloud";
homepage = "https://github.com/janrothkegel/wolf-comm";
license = lib.licenses.asl20;
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 @@ -6232,7 +6232,8 @@
]; # missing inputs: pywmspro
"wolflink" =
ps: with ps; [
]; # missing inputs: wolf-comm
wolf-comm
];
"workday" =
ps: with ps; [
holidays
Expand Down Expand Up @@ -7371,6 +7372,7 @@
"withings"
"wiz"
"wled"
"wolflink"
"workday"
"worldclock"
"ws66i"
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 @@ -18100,6 +18100,8 @@ self: super: with self; {

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

wolf-comm = callPackage ../development/python-modules/wolf-comm { };

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

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

0 comments on commit 650b66b

Please sign in to comment.