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