ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / tuya-iot-py-sdk / default.nix
blob89db0e84f9e111a1437f8aeaeec7008b3a0e9af2
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , paho-mqtt
5 , pycryptodome
6 , pythonOlder
7 , requests
8 , websocket-client
9 }:
11 buildPythonPackage rec {
12   pname = "tuya-iot-py-sdk";
13   version = "0.6.6";
14   format = "setuptools";
16   disabled = pythonOlder "3.6";
18   src = fetchFromGitHub {
19     owner = "tuya";
20     repo = "tuya-iot-python-sdk";
21     rev = "v${version}";
22     sha256 = "sha256-KmSVa71CM/kNhzE4GznaxISGmIaV+UcTSn3v+fmxmrQ=";
23   };
25   propagatedBuildInputs = [
26     paho-mqtt
27     pycryptodome
28     requests
29     websocket-client
30   ];
32   # Project has no tests
33   doCheck = false;
35   pythonImportsCheck = [ "tuya_iot" ];
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   };