diff --git a/pkgs/development/python-modules/python-aidot/default.nix b/pkgs/development/python-modules/python-aidot/default.nix new file mode 100644 index 000000000000..49932bc68d0e --- /dev/null +++ b/pkgs/development/python-modules/python-aidot/default.nix @@ -0,0 +1,40 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + aiohttp, + cryptography, + requests, +}: + +buildPythonPackage (finalAttrs: { + pname = "python-aidot"; + version = "0.3.53"; + pyproject = true; + + src = fetchFromGitHub { + owner = "AiDot-Development-Team"; + repo = "python-AiDot"; + tag = "v${finalAttrs.version}"; + hash = "sha256-Wo3eadMg1HxMjoGpiDSUImw36qN3zC5QrIAaEwdvbS8="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + aiohttp + cryptography + requests + ]; + + pythonImportsCheck = [ "aidot" ]; + + meta = { + description = "Control the WiFi lights of AIDOT in the local area network"; + homepage = "https://github.com/AiDot-Development-Team/python-AiDot"; + changelog = "https://github.com/AiDot-Development-Team/python-AiDot/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index dfeecbb692a8..71b1cac92d68 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -103,7 +103,8 @@ ]; "aidot" = ps: with ps; [ - ]; # missing inputs: python-aidot + python-aidot + ]; "air_quality" = ps: with ps; [ ]; @@ -7735,6 +7736,7 @@ "aftership" "agent_dvr" "ai_task" + "aidot" "air_quality" "airgradient" "airly" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3c42523415fe..89ca0b58fe5f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15818,6 +15818,8 @@ self: super: with self; { pythinkingcleaner = callPackage ../development/python-modules/pythinkingcleaner { }; + python-aidot = callPackage ../development/python-modules/python-aidot { }; + python-aodhclient = callPackage ../development/python-modules/python-aodhclient { }; python-apt = callPackage ../development/python-modules/python-apt { };