From f7c51d5b5d321c4beb6e7f7ba1e68e93819b3d02 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 16 Sep 2023 00:05:44 +0200 Subject: [PATCH 1/2] python311Packages.aiopegelonline: init at 0.0.6 --- .../python-modules/aiopegelonline/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/aiopegelonline/default.nix diff --git a/pkgs/development/python-modules/aiopegelonline/default.nix b/pkgs/development/python-modules/aiopegelonline/default.nix new file mode 100644 index 000000000000..3e78733ce443 --- /dev/null +++ b/pkgs/development/python-modules/aiopegelonline/default.nix @@ -0,0 +1,46 @@ +{ lib +, aiohttp +, aioresponses +, buildPythonPackage +, fetchFromGitHub +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "aiopegelonline"; + version = "0.0.6"; + format = "setuptools"; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "mib1185"; + repo = "aiopegelonline"; + rev = "refs/tags/v${version}"; + hash = "sha256-UbH5S+BfXMAurEvPx0sOzNoV/yypbMCPN3Y3cSherfQ="; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + nativeCheckInputs = [ + aioresponses + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ + "aiopegelonline" + ]; + + meta = with lib; { + description = "Library to retrieve data from PEGELONLINE"; + homepage = "https://github.com/mib1185/aiopegelonline"; + changelog = "https://github.com/mib1185/aiopegelonline/releases/tag/v${version}"; + 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..98e0b60d3d4b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -294,6 +294,8 @@ self: super: with self; { aiooss2 = callPackage ../development/python-modules/aiooss2 { }; + aiopegelonline = callPackage ../development/python-modules/aiopegelonline { }; + aiopg = callPackage ../development/python-modules/aiopg { }; aioprocessing = callPackage ../development/python-modules/aioprocessing { }; From 336c67eb66c52ef8b61e7f46308e94fc948c3db6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 21 Aug 2023 23:38:10 +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..981fe9348c3a 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -3069,7 +3069,8 @@ "peco_opower" = ps: with ps; [ ]; "pegel_online" = ps: with ps; [ - ]; # missing inputs: aiopegelonline + aiopegelonline + ]; "pencom" = ps: with ps; [ pencompy ]; @@ -5294,6 +5295,7 @@ "panel_custom" "panel_iframe" "peco" + "pegel_online" "persistent_notification" "person" "philips_js"