depot/third_party/nixpkgs/pkgs/development/python-modules/tinytuya/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

47 lines
1,000 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
cryptography,
requests,
colorama,
}:
buildPythonPackage rec {
pname = "tinytuya";
version = "1.14.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jasonacox";
repo = "tinytuya";
rev = "refs/tags/v${version}";
hash = "sha256-ytM7S0V/hDOCb3RyzAXZEd2zV/sMVQPrah/2zRACMsQ=";
};
build-system = [ setuptools ];
dependencies = [
cryptography
requests
colorama
];
# Tests require real network resources
doCheck = false;
pythonImportsCheck = [ "tinytuya" ];
meta = with lib; {
description = "Python API for Tuya WiFi smart devices using a direct local area network (LAN) connection or the cloud (TuyaCloud API)";
homepage = "https://github.com/jasonacox/tinytuya";
changelog = "https://github.com/jasonacox/tinytuya/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ pathob ];
};
}