diff --git a/pkgs/development/python-modules/python-qube-heatpump/default.nix b/pkgs/development/python-modules/python-qube-heatpump/default.nix new file mode 100644 index 000000000000..6385b1dc34ea --- /dev/null +++ b/pkgs/development/python-modules/python-qube-heatpump/default.nix @@ -0,0 +1,43 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pymodbus, + pytest-asyncio, + pytest-mock, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "python-qube-heatpump"; + version = "1.7.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "MattieGit"; + repo = "python-qube-heatpump"; + tag = "v${finalAttrs.version}"; + hash = "sha256-auxFAKEi8nvPQPDU7Lg2bt8X5TaFaYhvcnQLv86QpGY="; + }; + + build-system = [ hatchling ]; + + dependencies = [ pymodbus ]; + + nativeCheckInputs = [ + pytest-asyncio + pytest-mock + pytestCheckHook + ]; + + pythonImportsCheck = [ "python_qube_heatpump" ]; + + meta = { + description = "Async Modbus client for Qube Heat Pumps"; + homepage = "https://github.com/MattieGit/python-qube-heatpump"; + changelog = "https://github.com/MattieGit/python-qube-heatpump/releases/tag/${finalAttrs.src.tag}"; + 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 d08f34e023de..cd40377aa044 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15872,6 +15872,8 @@ self: super: with self; { python-ptrace = callPackage ../development/python-modules/python-ptrace { }; + python-qube-heatpump = callPackage ../development/python-modules/python-qube-heatpump { }; + python-rabbitair = callPackage ../development/python-modules/python-rabbitair { }; python-rapidjson = callPackage ../development/python-modules/python-rapidjson { };