depot/third_party/nixpkgs/pkgs/development/python-modules/tinytuya/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

50 lines
999 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, setuptools
# dependencies
, cryptography
, requests
, colorama
}:
buildPythonPackage rec {
pname = "tinytuya";
version = "1.13.2";
pyproject = true;
src = fetchFromGitHub {
owner = "jasonacox";
repo = "tinytuya";
rev = "refs/tags/v${version}";
hash = "sha256-44x5P+Ej/d6B5n53iDuLDBzkeZZvArpcgzXLJBcIJe0=";
};
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 ];
};
}