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/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1903ee62e571..b9448d2415ec 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14094,6 +14094,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 { };