nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 paho-mqtt,
6 pycryptodome,
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 src = fetchFromGitHub {
17 owner = "tuya";
18 repo = "tuya-iot-python-sdk";
19 rev = "v${version}";
20 hash = "sha256-KmSVa71CM/kNhzE4GznaxISGmIaV+UcTSn3v+fmxmrQ=";
21 };
22
23 propagatedBuildInputs = [
24 paho-mqtt
25 pycryptodome
26 requests
27 websocket-client
28 ];
29
30 # Project has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [ "tuya_iot" ];
34
35 meta = {
36 description = "Tuya IoT Python SDK for Tuya Open API";
37 homepage = "https://github.com/tuya/tuya-iot-python-sdk";
38 license = with lib.licenses; [ mit ];
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}