Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #140280 from fabaff/tuya-iot-py-sdk

authored by Sandro and committed by GitHub 6a466069 f865ed61

+45
+43
pkgs/development/python-modules/tuya-iot-py-sdk/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , paho-mqtt 5 + , pycryptodome 6 + , pythonOlder 7 + , requests 8 + , websocket-client 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "tuya-iot-py-sdk"; 13 + version = "0.5.0"; 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 + sha256 = "1qfjq4h62phsrmrfb11xwd6gjc28vhs90g3mmx7d8ikgsgnqlvza"; 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 + }
+2
pkgs/top-level/python-packages.nix
··· 9182 9182 9183 9183 tumpa = callPackage ../development/python-modules/tumpa { }; 9184 9184 9185 + tuya-iot-py-sdk = callPackage ../development/python-modules/tuya-iot-py-sdk { }; 9186 + 9185 9187 tuyaha = callPackage ../development/python-modules/tuyaha { }; 9186 9188 9187 9189 tvdb_api = callPackage ../development/python-modules/tvdb_api { };