Commit 482f9e2d authored by Jamie Magee's avatar Jamie Magee
Browse files

python3Packages.tuya-device-handlers: init at 0.0.10

parent 58ffa554
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{
  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 ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -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 { };