From 95f95dc66e129e24c80acdb7b9c3b6df7ac4fc43 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 21 Aug 2023 22:51:09 +0200 Subject: [PATCH 1/2] python311Packages.aiobafi6: init at 0.8.2 --- .../python-modules/aiobafi6/default.nix | 51 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/aiobafi6/default.nix diff --git a/pkgs/development/python-modules/aiobafi6/default.nix b/pkgs/development/python-modules/aiobafi6/default.nix new file mode 100644 index 000000000000..e92fa59d920a --- /dev/null +++ b/pkgs/development/python-modules/aiobafi6/default.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, protobuf +, pytest-asyncio +, pytestCheckHook +, pythonOlder +, zeroconf +}: + +buildPythonPackage rec { + pname = "aiobafi6"; + version = "0.8.2"; + format = "pyproject"; + + disabled = pythonOlder "3.10"; + + src = fetchFromGitHub { + owner = "jfroy"; + repo = "aiobafi6"; + rev = "refs/tags/${version}"; + hash = "sha256-ng+WpLhAfsouFA9biomc0V+L9XQHDthJeJLv8ttnYBc="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + protobuf + zeroconf + ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ + "aiobafi6" + ]; + + meta = with lib; { + description = "Library for communication with the Big Ass Fans i6 firmware"; + homepage = "https://github.com/jfroy/aiobafi6"; + changelog = "https://github.com/jfroy/aiobafi6/releases/tag/0.8.2"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9e5bd99704fa..047768e52ed2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -152,6 +152,8 @@ self: super: with self; { aioazuredevops = callPackage ../development/python-modules/aioazuredevops { }; + aiobafi6 = callPackage ../development/python-modules/aiobafi6 { }; + aioblescan = callPackage ../development/python-modules/aioblescan { }; aiocache = callPackage ../development/python-modules/aiocache { }; From c488309eb556aeec1007e40cca8b3093676ce840 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 21 Aug 2023 22:52:25 +0200 Subject: [PATCH 2/2] 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 13637663d6ce..0cf68fb02084 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -328,7 +328,8 @@ sqlalchemy ]; "baf" = ps: with ps; [ - ]; # missing inputs: aiobafi6 + aiobafi6 + ]; "baidu" = ps: with ps; [ ]; # missing inputs: baidu-aip "balboa" = ps: with ps; [ @@ -4887,6 +4888,7 @@ "azure_devops" "azure_event_hub" "backup" + "baf" "balboa" "bayesian" "binary_sensor"