diff --git a/pkgs/development/python-modules/aioaladdinconnect/default.nix b/pkgs/development/python-modules/aioaladdinconnect/default.nix new file mode 100644 index 000000000000..3b32cb3f2aab --- /dev/null +++ b/pkgs/development/python-modules/aioaladdinconnect/default.nix @@ -0,0 +1,38 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchPypi +, pythonOlder +}: + +buildPythonPackage rec { + pname = "aioaladdinconnect"; + version = "0.1.21"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + pname = "AIOAladdinConnect"; + inherit version; + hash = "sha256-Zr9QLiQNmphPpAVnFVpoOlVbuWUVtWXIacYKAnth+E4="; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "AIOAladdinConnect" + ]; + + meta = with lib; { + description = "Library for controlling Genie garage doors connected to Aladdin Connect devices"; + homepage = "https://github.com/mkmer/AIOAladdinConnect"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 2c776d847b84..b5a00436db91 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -61,7 +61,8 @@ aioairzone ]; "aladdin_connect" = ps: with ps; [ - ]; # missing inputs: AIOAladdinConnect + aioaladdinconnect + ]; "alarm_control_panel" = ps: with ps; [ ]; "alarmdecoder" = ps: with ps; [ @@ -3232,6 +3233,7 @@ "airtouch4" "airvisual" "airzone" + "aladdin_connect" "alarm_control_panel" "alarmdecoder" "alert" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 64c2d8e2fe40..dfc9daa08948 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -249,6 +249,8 @@ in { aioairzone = callPackage ../development/python-modules/aioairzone { }; + aioaladdinconnect = callPackage ../development/python-modules/aioaladdinconnect { }; + aioambient = callPackage ../development/python-modules/aioambient { }; aioapns = callPackage ../development/python-modules/aioapns { };