From 6089b88a23a30f43f79d3105ae47f4201c9555e3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 10 Jul 2022 11:56:17 +0200 Subject: [PATCH 1/3] python310Packages.aioaladdinconnect: init 0.1.20 --- .../aioaladdinconnect/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/aioaladdinconnect/default.nix diff --git a/pkgs/development/python-modules/aioaladdinconnect/default.nix b/pkgs/development/python-modules/aioaladdinconnect/default.nix new file mode 100644 index 000000000000..7229f5a1e3fb --- /dev/null +++ b/pkgs/development/python-modules/aioaladdinconnect/default.nix @@ -0,0 +1,39 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +}: + +buildPythonPackage rec { + pname = "aioaladdinconnect"; + version = "0.1.20"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "mkmer"; + repo = "AIOAladdinConnect"; + rev = version; + hash = "sha256-JHGAJx1Hb/NKWZ+y1ACmVUiesYj1VVHnYCcP+XZGADs="; + }; + + 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/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index df044ef44b38..27e885d0a854 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -247,6 +247,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 { }; From af480a0ff3765c2d76bd44201cec7a1498a340fc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 10 Jul 2022 11:58:21 +0200 Subject: [PATCH 2/3] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 1c65fce6e7fe..a6e2ee6b77cf 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; [ @@ -3231,6 +3232,7 @@ "airtouch4" "airvisual" "airzone" + "aladdin_connect" "alarm_control_panel" "alarmdecoder" "alert" From 5f42ffd1bcba535f4df44d73278c0a9e14c5c836 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 10 Jul 2022 13:11:24 +0200 Subject: [PATCH 3/3] python310Packages.aioaladdinconnect: 0.1.20 -> 0.1.21 --- .../python-modules/aioaladdinconnect/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/aioaladdinconnect/default.nix b/pkgs/development/python-modules/aioaladdinconnect/default.nix index 7229f5a1e3fb..3b32cb3f2aab 100644 --- a/pkgs/development/python-modules/aioaladdinconnect/default.nix +++ b/pkgs/development/python-modules/aioaladdinconnect/default.nix @@ -1,22 +1,21 @@ { lib , aiohttp , buildPythonPackage -, fetchFromGitHub +, fetchPypi , pythonOlder }: buildPythonPackage rec { pname = "aioaladdinconnect"; - version = "0.1.20"; + version = "0.1.21"; format = "setuptools"; disabled = pythonOlder "3.7"; - src = fetchFromGitHub { - owner = "mkmer"; - repo = "AIOAladdinConnect"; - rev = version; - hash = "sha256-JHGAJx1Hb/NKWZ+y1ACmVUiesYj1VVHnYCcP+XZGADs="; + src = fetchPypi { + pname = "AIOAladdinConnect"; + inherit version; + hash = "sha256-Zr9QLiQNmphPpAVnFVpoOlVbuWUVtWXIacYKAnth+E4="; }; propagatedBuildInputs = [