diff --git a/pkgs/development/python-modules/pyaehw4a1/default.nix b/pkgs/development/python-modules/pyaehw4a1/default.nix new file mode 100644 index 000000000000..0aa37cbae1e5 --- /dev/null +++ b/pkgs/development/python-modules/pyaehw4a1/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildPythonPackage +, isPy27 +, fetchFromGitHub +}: + +buildPythonPackage rec { + pname = "pyaehw4a1"; + version = "0.3.9"; + + disabled = isPy27; + + src = fetchFromGitHub { + owner = "bannhead"; + repo = "pyaehw4a1"; + rev = "v${version}"; + sha256 = "0grs7kiyhzlwqzmw2yxkkglnwjfpimgwxbgp0047rlp3k8md7sjv"; + }; + + # no tests implemented + doCheck = false; + + pythonImportsCheck = [ "pyaehw4a1" ]; + + meta = with lib; { + description = "Python interface for Hisense AEH-W4A1 module"; + homepage = "https://github.com/bannhead/pyaehw4a1"; + license = licenses.asl20; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 143554913bab..20c0d761137d 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -348,7 +348,7 @@ "here_travel_time" = ps: with ps; [ herepy ]; "hikvision" = ps: with ps; [ ]; # missing inputs: pyhik "hikvisioncam" = ps: with ps; [ ]; # missing inputs: hikvision - "hisense_aehw4a1" = ps: with ps; [ ]; # missing inputs: pyaehw4a1 + "hisense_aehw4a1" = ps: with ps; [ pyaehw4a1 ]; "history" = ps: with ps; [ aiohttp-cors sqlalchemy ]; "history_stats" = ps: with ps; [ sqlalchemy ]; "hitron_coda" = ps: with ps; [ ]; diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 5bf5a5d9eb96..020e60f23740 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -442,6 +442,7 @@ in with py.pkgs; buildPythonApplication rec { "hddtemp" "heos" "here_travel_time" + "hisense_aehw4a1" "history" "history_stats" "hive" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index af320bed9da5..fcca18779ed3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5275,6 +5275,8 @@ in { ppdeep = callPackage ../development/python-modules/ppdeep { }; + pyaehw4a1 = callPackage ../development/python-modules/pyaehw4a1 { }; + pyatag = callPackage ../development/python-modules/pyatag { }; pycontrol4 = callPackage ../development/python-modules/pycontrol4 { };