tuya-device-sharing-sdk: init at 0.2.0

This commit is contained in:
Andrea Ciceri 2024-03-10 12:01:16 +01:00
parent 0e0a57e46e
commit a7016c1016
No known key found for this signature in database
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ 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 ];
};
}

View File

@ -15030,6 +15030,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 { };