python3Packages.tuya-iot-py-sdk: init at 0.5.0
This commit is contained in:
parent
ca2ece2bd4
commit
33aad6316e
2 changed files with 45 additions and 0 deletions
43
pkgs/development/python-modules/tuya-iot-py-sdk/default.nix
Normal file
43
pkgs/development/python-modules/tuya-iot-py-sdk/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, paho-mqtt
|
||||
, pycryptodome
|
||||
, pythonOlder
|
||||
, requests
|
||||
, websocket-client
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tuya-iot-py-sdk";
|
||||
version = "0.5.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tuya";
|
||||
repo = "tuya-iot-python-sdk";
|
||||
rev = "v${version}";
|
||||
sha256 = "1qfjq4h62phsrmrfb11xwd6gjc28vhs90g3mmx7d8ikgsgnqlvza";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
paho-mqtt
|
||||
pycryptodome
|
||||
requests
|
||||
websocket-client
|
||||
];
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "tuya_iot" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tuya IoT Python SDK for Tuya Open API";
|
||||
homepage = "https://github.com/tuya/tuya-iot-python-sdk";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -9174,6 +9174,8 @@ in {
|
|||
|
||||
tumpa = callPackage ../development/python-modules/tumpa { };
|
||||
|
||||
tuya-iot-py-sdk = callPackage ../development/python-modules/tuya-iot-py-sdk { };
|
||||
|
||||
tuyaha = callPackage ../development/python-modules/tuyaha { };
|
||||
|
||||
tvdb_api = callPackage ../development/python-modules/tvdb_api { };
|
||||
|
|
Loading…
Reference in a new issue