From 40fe4dee250f2cac8f5dca422f2cb3034d88a55c Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 10 Aug 2025 23:17:54 -0700 Subject: [PATCH] python3Packages.pystiebeleltron: init at 0.2.3 --- .../pystiebeleltron/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/pystiebeleltron/default.nix diff --git a/pkgs/development/python-modules/pystiebeleltron/default.nix b/pkgs/development/python-modules/pystiebeleltron/default.nix new file mode 100644 index 000000000000..84ad1e0736be --- /dev/null +++ b/pkgs/development/python-modules/pystiebeleltron/default.nix @@ -0,0 +1,42 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pymodbus, + pytestCheckHook, + pytest-asyncio, + pytest-mock, +}: + +buildPythonPackage rec { + pname = "pystiebeleltron"; + version = "0.2.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "ThyMYthOS"; + repo = "python-stiebel-eltron"; + tag = "v${version}"; + hash = "sha256-vJo9fjtbGuWJ1JcK6u0Cnol1Ev3eobD14YjH+S256og="; + }; + + build-system = [ hatchling ]; + + dependencies = [ pymodbus ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-asyncio + pytest-mock + ]; + + pythonImportsCheck = [ "pystiebeleltron" ]; + + meta = { + description = "Python API for interacting with the Stiebel Eltron ISG web gateway via Modbus"; + homepage = "https://github.com/ThyMYthOS/python-stiebel-eltron"; + 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 39a62538ad78..38975dc8e779 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14086,6 +14086,8 @@ self: super: with self; { pystemmer = callPackage ../development/python-modules/pystemmer { }; + pystiebeleltron = callPackage ../development/python-modules/pystiebeleltron { }; + pystray = callPackage ../development/python-modules/pystray { }; pysubs2 = callPackage ../development/python-modules/pysubs2 { };