a6d62be0d1
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
43 lines
849 B
Nix
43 lines
849 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, paho-mqtt
|
|
, pycryptodome
|
|
, pythonOlder
|
|
, requests
|
|
, websocket-client
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tuya-iot-py-sdk";
|
|
version = "0.6.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tuya";
|
|
repo = "tuya-iot-python-sdk";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-KmSVa71CM/kNhzE4GznaxISGmIaV+UcTSn3v+fmxmrQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
paho-mqtt
|
|
pycryptodome
|
|
requests
|
|
websocket-client
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "tuya_iot" ];
|
|
|
|
meta = with lib; {
|
|
description = "Tuya IoT Python SDK for Tuya Open API";
|
|
homepage = "https://github.com/tuya/tuya-iot-python-sdk";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|