depot/third_party/nixpkgs/pkgs/development/python-modules/tuya-iot-py-sdk/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

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.3";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "tuya";
repo = "tuya-iot-python-sdk";
rev = "v${version}";
sha256 = "sha256-i3VECGGpnvbogZ46PJh4Eto7neSZOJCUdOmAU/sMKEw=";
};
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 ];
};
}