diff --git a/pkgs/development/python-modules/homelink-integration-api/default.nix b/pkgs/development/python-modules/homelink-integration-api/default.nix new file mode 100644 index 000000000000..d04373fa3181 --- /dev/null +++ b/pkgs/development/python-modules/homelink-integration-api/default.nix @@ -0,0 +1,49 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + aiofiles, + aiohttp, + boto3, + paho-mqtt, + pyopenssl, + python-decouple, +}: + +buildPythonPackage (finalAttrs: { + pname = "homelink-integration-api"; + version = "0.0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Gentex-Corporation"; + repo = "homelink-integration-api"; + tag = "v${finalAttrs.version}"; + hash = "sha256-ELEqx41JSAmXBEowwJ1tYPZV40hMjswaHQonD+1IG5E="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + aiofiles + aiohttp + boto3 + paho-mqtt + pyopenssl + python-decouple + ]; + + # upstream tests require network access and AWS credentials + doCheck = false; + + pythonImportsCheck = [ "homelink" ]; + + meta = { + description = "API to interact with Homelink cloud for MQTT-enabled smart home platforms"; + homepage = "https://github.com/Gentex-Corporation/homelink-integration-api"; + changelog = "https://github.com/Gentex-Corporation/homelink-integration-api/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 2e95bf9acfee..8a429fd7ec84 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2061,7 +2061,8 @@ ]; "gentex_homelink" = ps: with ps; [ - ]; # missing inputs: homelink-integration-api + homelink-integration-api + ]; "geo_json_events" = ps: with ps; [ aio-geojson-generic-client @@ -7452,6 +7453,7 @@ "generic_hygrostat" "generic_thermostat" "geniushub" + "gentex_homelink" "geo_json_events" "geo_location" "geo_rss_events" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 14abdf4f8c76..ef836fc55e0b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7046,6 +7046,8 @@ self: super: with self; { homeconnect = callPackage ../development/python-modules/homeconnect { }; + homelink-integration-api = callPackage ../development/python-modules/homelink-integration-api { }; + homematicip = callPackage ../development/python-modules/homematicip { }; homepluscontrol = callPackage ../development/python-modules/homepluscontrol { };