From 482f9e2d1dc6989219b8a6855ec6b3c9ad36010e Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Mon, 23 Mar 2026 13:20:05 -0700 Subject: [PATCH] python3Packages.tuya-device-handlers: init at 0.0.10 --- .../tuya-device-handlers/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/tuya-device-handlers/default.nix diff --git a/pkgs/development/python-modules/tuya-device-handlers/default.nix b/pkgs/development/python-modules/tuya-device-handlers/default.nix new file mode 100644 index 000000000000..2f8f79435cf5 --- /dev/null +++ b/pkgs/development/python-modules/tuya-device-handlers/default.nix @@ -0,0 +1,41 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + tuya-device-sharing-sdk, + pytestCheckHook, + syrupy, +}: + +buildPythonPackage (finalAttrs: { + pname = "tuya-device-handlers"; + version = "0.0.10"; + pyproject = true; + + src = fetchFromGitHub { + owner = "home-assistant-libs"; + repo = "tuya-device-handlers"; + tag = "v${finalAttrs.version}"; + hash = "sha256-W5aSEt8xXxQUcs6+AVVcgXxjm3WppzfCaww8YX+sej0="; + }; + + build-system = [ poetry-core ]; + + dependencies = [ tuya-device-sharing-sdk ]; + + nativeCheckInputs = [ + pytestCheckHook + syrupy + ]; + + pythonImportsCheck = [ "tuya_device_handlers" ]; + + meta = { + description = "Tuya quirks library"; + homepage = "https://github.com/home-assistant-libs/tuya-device-handlers"; + changelog = "https://github.com/home-assistant-libs/tuya-device-handlers/releases/tag/v${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 036e5dada01e..dc25dd958544 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -19758,6 +19758,8 @@ self: super: with self; { turrishw = callPackage ../development/python-modules/turrishw { }; + tuya-device-handlers = callPackage ../development/python-modules/tuya-device-handlers { }; + tuya-device-sharing-sdk = callPackage ../development/python-modules/tuya-device-sharing-sdk { }; tuya-iot-py-sdk = callPackage ../development/python-modules/tuya-iot-py-sdk { };