2021-10-04 12:37:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, paho-mqtt
|
|
|
|
, pycryptodome
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, websocket-client
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tuya-iot-py-sdk";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "0.6.6";
|
2021-10-04 12:37:57 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tuya";
|
|
|
|
repo = "tuya-iot-python-sdk";
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-KmSVa71CM/kNhzE4GznaxISGmIaV+UcTSn3v+fmxmrQ=";
|
2021-10-04 12:37:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|