diff --git a/pkgs/development/python-modules/pyliebherrhomeapi/default.nix b/pkgs/development/python-modules/pyliebherrhomeapi/default.nix new file mode 100644 index 000000000000..df6c3ae728ab --- /dev/null +++ b/pkgs/development/python-modules/pyliebherrhomeapi/default.nix @@ -0,0 +1,43 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + aiohttp, + pytestCheckHook, + pytest-asyncio, + pytest-timeout, +}: + +buildPythonPackage (finalAttrs: { + pname = "pyliebherrhomeapi"; + version = "0.3.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "mettolen"; + repo = "pyliebherrhomeapi"; + tag = finalAttrs.version; + hash = "sha256-J+s9oRKK2DWZV05M1bvDEBqczaJXuif4t3eOJUgrAu0="; + }; + + build-system = [ setuptools ]; + + dependencies = [ aiohttp ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-asyncio + pytest-timeout + ]; + + pythonImportsCheck = [ "pyliebherrhomeapi" ]; + + meta = { + description = "Python library for Liebherr Home API"; + homepage = "https://github.com/mettolen/pyliebherrhomeapi"; + changelog = "https://github.com/mettolen/pyliebherrhomeapi/releases/tag/${finalAttrs.version}"; + 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 a83c6b94aa9c..34e3b668e27d 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -3424,7 +3424,8 @@ ]; "liebherr" = ps: with ps; [ - ]; # missing inputs: pyliebherrhomeapi + pyliebherrhomeapi + ]; "life360" = ps: with ps; [ ]; @@ -7715,6 +7716,7 @@ "lg_thinq" "libre_hardware_monitor" "lidarr" + "liebherr" "life360" "lifx" "light" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 84f50db9c15a..34deebf50cdc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14102,6 +14102,8 @@ self: super: with self; { pylibsrtp = callPackage ../development/python-modules/pylibsrtp { }; + pyliebherrhomeapi = callPackage ../development/python-modules/pyliebherrhomeapi { }; + pylink-square = callPackage ../development/python-modules/pylink-square { }; pylint = callPackage ../development/python-modules/pylint { };