Unverified Commit 66f47bc6 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #294706 from aciceri/tuya

tuya-device-sharing-sdk: init at 0.2.0, home-assistant: update component-packages
parents aab89547 3ffe0ebd
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, requests
, paho-mqtt
, cryptography
}:
let
  pname = "tuya-device-sharing-sdk";
  version = "0.2.0";
in
buildPythonPackage {
  inherit pname version;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-fu8zh59wlnxtstNbNL8mIm10tiXy22oPbi6oUy5x8c8=";
  };

  # workaround needed, upstream issue: https://github.com/tuya/tuya-device-sharing-sdk/issues/10
  postPatch = ''
    touch requirements.txt
  '';

  build-system = [
    setuptools
  ];

  dependencies = [
    requests
    paho-mqtt
    cryptography
  ];

  doCheck = false; # no tests

  meta = with lib; {
    description = "Tuya Device Sharing SDK";
    homepage = "https://github.com/tuya/tuya-device-sharing-sdk";
    license = licenses.mit;
    maintainers = with maintainers; [ aciceri ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -5265,7 +5265,8 @@
    ];
    "tuya" = ps: with ps; [
      ha-ffmpeg
    ]; # missing inputs: tuya-device-sharing-sdk
      tuya-device-sharing-sdk
    ];
    "twentemilieu" = ps: with ps; [
      twentemilieu
    ];
@@ -6574,6 +6575,7 @@
    "transport_nsw"
    "trend"
    "tts"
    "tuya"
    "twentemilieu"
    "twilio"
    "twinkly"
+1 −1
Original line number Diff line number Diff line
#! /usr/bin/env nix-shell
#! nix-shell -i python3 -p "python3.withPackages (ps: with ps; [ packaging rich ])" -p nodePackages.pyright ruff isort"
#! nix-shell -i python3 -p "python3.withPackages (ps: with ps; [ packaging rich ])" -p nodePackages.pyright ruff isort
#
# This script downloads Home Assistant's source tarball.
# Inside the homeassistant/components directory, each integration has an associated manifest.json,
+2 −0
Original line number Diff line number Diff line
@@ -15034,6 +15034,8 @@ self: super: with self; {
  turnt = callPackage ../development/python-modules/turnt { };
  tuya-device-sharing-sdk = callPackage ../development/python-modules/tuya-device-sharing-sdk { };
  tuya-iot-py-sdk = callPackage ../development/python-modules/tuya-iot-py-sdk { };
  tuyaha = callPackage ../development/python-modules/tuyaha { };