From 47c2e3ba5806eb1564514f6cc29addbe01ae4faf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 24 Oct 2025 21:12:30 -0700 Subject: [PATCH 1/2] python3Packages.pycync: init at 0.4.2 --- .../python-modules/pycync/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/pycync/default.nix diff --git a/pkgs/development/python-modules/pycync/default.nix b/pkgs/development/python-modules/pycync/default.nix new file mode 100644 index 000000000000..62dcf3c65b36 --- /dev/null +++ b/pkgs/development/python-modules/pycync/default.nix @@ -0,0 +1,49 @@ +{ + aiohttp, + buildPythonPackage, + fetchFromGitHub, + hatchling, + lib, + pytest-asyncio, + pytest-mock, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "pycync"; + version = "0.4.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Kinachi249"; + repo = "pycync"; + tag = "v${version}"; + hash = "sha256-PDCS+ucfO5RRvTshGGjxir3ez7L405k5tL5svMxZMsg="; + }; + + build-system = [ hatchling ]; + + dependencies = [ + aiohttp + ]; + + pythonImportsCheck = [ "pycync" ]; + + nativeCheckInputs = [ + pytest-asyncio + pytest-mock + pytestCheckHook + ]; + + preCheck = '' + cd tests + ''; + + meta = { + changelog = "https://github.com/Kinachi249/pycync/releases/tag/${src.tag}"; + description = "Python API library for Cync smart devices"; + homepage = "https://github.com/Kinachi249/pycync"; + license = lib.licenses.gpl3Plus; + maintainers = [ lib.maintainers.dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 99a8ce5fcd78..99a863ce8772 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12828,6 +12828,8 @@ self: super: with self; { pycycling = callPackage ../development/python-modules/pycycling { }; + pycync = callPackage ../development/python-modules/pycync { }; + pycyphal = callPackage ../development/python-modules/pycyphal { }; pydaikin = callPackage ../development/python-modules/pydaikin { }; From ae1e0c93480629b8a31fbc6dfb43a3286c2f9786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 24 Oct 2025 21:13:19 -0700 Subject: [PATCH 2/2] home-assistant: support cync component --- 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 f45e2ac8cbf4..f961ebe21c10 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -1057,7 +1057,8 @@ ]; "cync" = ps: with ps; [ - ]; # missing inputs: pycync + pycync + ]; "dacia" = ps: with ps; [ ]; @@ -7138,6 +7139,7 @@ "cpuspeed" "crownstone" "cups" + "cync" "daikin" "datadog" "date"