From 430ca53b6e6abfb089816e19e51b2d8774ef9a4f Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Thu, 28 Aug 2025 20:16:27 -0700 Subject: [PATCH 1/3] python3Packages.tellcore-net: init at 0.4 --- .../python-modules/tellcore-net/default.nix | 34 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/tellcore-net/default.nix diff --git a/pkgs/development/python-modules/tellcore-net/default.nix b/pkgs/development/python-modules/tellcore-net/default.nix new file mode 100644 index 000000000000..4e513953e9da --- /dev/null +++ b/pkgs/development/python-modules/tellcore-net/default.nix @@ -0,0 +1,34 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, +}: + +buildPythonPackage rec { + pname = "tellcore-net"; + version = "0.4"; + pyproject = true; + + src = fetchFromGitHub { + owner = "home-assistant-libs"; + repo = "tellcore-net"; + tag = version; + hash = "sha256-yMNAu8iSFB2UDqJR3u2XFelpGRKzi/3HyuEbrZK6v8g="; + }; + + build-system = [ setuptools ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ "tellcorenet" ]; + + meta = { + description = "Python module that allows to run tellcore over TCP/IP"; + homepage = "https://github.com/home-assistant-libs/tellcore-net"; + changelog = "https://github.com/home-assistant-libs/tellcore-net/releases/tag/${version}"; + license = lib.licenses.bsd3; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e722cfc7ae0c..09a2c7a229a3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17907,6 +17907,8 @@ self: super: with self; { telfhash = callPackage ../development/python-modules/telfhash { }; + tellcore-net = callPackage ../development/python-modules/tellcore-net { }; + tellduslive = callPackage ../development/python-modules/tellduslive { }; temescal = callPackage ../development/python-modules/temescal { }; From db325c065859b0c95fe115083a658d57a5a7cf0a Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Thu, 28 Aug 2025 20:16:56 -0700 Subject: [PATCH 2/3] python3Packages.tellcore-py: init at 1.1.3 --- .../python-modules/tellcore-py/default.nix | 34 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/tellcore-py/default.nix diff --git a/pkgs/development/python-modules/tellcore-py/default.nix b/pkgs/development/python-modules/tellcore-py/default.nix new file mode 100644 index 000000000000..968c3d56e51a --- /dev/null +++ b/pkgs/development/python-modules/tellcore-py/default.nix @@ -0,0 +1,34 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "tellcore-py"; + version = "1.1.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "erijo"; + repo = "tellcore-py"; + tag = "v${version}"; + hash = "sha256-AcdYMzd3Ln65PZ+weSxyR+CwXmdi2A+wSE6B/4hepE0="; + }; + + build-system = [ setuptools ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "tellcore" ]; + + meta = { + description = "Python wrapper for Telldus' home automation library"; + homepage = "https://github.com/erijo/tellcore-py"; + changelog = "https://github.com/erijo/tellcore-py/releases/tag/v${version}"; + license = lib.licenses.gpl3Plus; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 09a2c7a229a3..6c916ba09ced 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17909,6 +17909,8 @@ self: super: with self; { tellcore-net = callPackage ../development/python-modules/tellcore-net { }; + tellcore-py = callPackage ../development/python-modules/tellcore-py { }; + tellduslive = callPackage ../development/python-modules/tellduslive { }; temescal = callPackage ../development/python-modules/temescal { }; From bfb0361829f61ee9c4b611f20c52c151bccfce12 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Thu, 28 Aug 2025 20:17:07 -0700 Subject: [PATCH 3/3] home-assistant: update component packages --- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index dbb703a754e6..ec913f2487a1 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -5927,7 +5927,9 @@ ]; "tellstick" = ps: with ps; [ - ]; # missing inputs: tellcore-net tellcore-py + tellcore-net + tellcore-py + ]; "telnet" = ps: with ps; [ ];