From 0013fa0fbbef75c665c5f90fc2f826e550f8b6d4 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Mon, 16 Feb 2026 21:12:48 -0800 Subject: [PATCH 1/2] python3Packages.airpatrol: init at 0.1.0 --- .../python-modules/airpatrol/default.nix | 40 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/python-modules/airpatrol/default.nix diff --git a/pkgs/development/python-modules/airpatrol/default.nix b/pkgs/development/python-modules/airpatrol/default.nix new file mode 100644 index 000000000000..f6531bd0d668 --- /dev/null +++ b/pkgs/development/python-modules/airpatrol/default.nix @@ -0,0 +1,40 @@ +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pytest-asyncio, + setuptools, +}: + +buildPythonPackage rec { + pname = "airpatrol"; + version = "0.1.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "antondalgren"; + repo = "airpatrol"; + tag = "v${version}"; + hash = "sha256-KPch1GsJ5my43d9SVpwGA2EmrkmeBGJWAkY51rDofTk="; + }; + + build-system = [ setuptools ]; + + dependencies = [ aiohttp ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-asyncio + ]; + + pythonImportsCheck = [ "airpatrol" ]; + + meta = { + description = "Python package for interacting with AirPatrol devices"; + homepage = "https://github.com/antondalgren/airpatrol"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jamiemagee ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cc2c251b3e0b..d80e30446448 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -584,6 +584,8 @@ self: super: with self; { airos = callPackage ../development/python-modules/airos { }; + airpatrol = callPackage ../development/python-modules/airpatrol { }; + airportsdata = callPackage ../development/python-modules/airportsdata { }; airthings-ble = callPackage ../development/python-modules/airthings-ble { }; From 66f43ae4321585fcf992f0b9b2bcb7cd336b4b05 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Mon, 16 Feb 2026 21:15:12 -0800 Subject: [PATCH 2/2] home-assistant: regenerate component-packages.nix --- 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 de8714897649..f343bf2d25dd 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -126,7 +126,8 @@ ]; "airpatrol" = ps: with ps; [ - ]; # missing inputs: airpatrol + airpatrol + ]; "airq" = ps: with ps; [ aioairq @@ -7176,6 +7177,7 @@ "airnow" "airobot" "airos" + "airpatrol" "airq" "airthings" "airthings_ble"