1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 paho-mqtt, 6 pycryptodome, 7 pythonOlder, 8 requests, 9 websocket-client, 10}: 11 12buildPythonPackage rec { 13 pname = "tuya-iot-py-sdk"; 14 version = "0.6.6"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "tuya"; 21 repo = "tuya-iot-python-sdk"; 22 rev = "v${version}"; 23 hash = "sha256-KmSVa71CM/kNhzE4GznaxISGmIaV+UcTSn3v+fmxmrQ="; 24 }; 25 26 propagatedBuildInputs = [ 27 paho-mqtt 28 pycryptodome 29 requests 30 websocket-client 31 ]; 32 33 # Project has no tests 34 doCheck = false; 35 36 pythonImportsCheck = [ "tuya_iot" ]; 37 38 meta = with lib; { 39 description = "Tuya IoT Python SDK for Tuya Open API"; 40 homepage = "https://github.com/tuya/tuya-iot-python-sdk"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}