Merge pull request #310521 from pathob/python-package-tinytunya
python311Packages.tinytuya: init at 0.1.51
This commit is contained in:
commit
6980cd174d
@ -15441,6 +15441,12 @@
|
||||
githubId = 72527881;
|
||||
name = "PassiveLemon";
|
||||
};
|
||||
pathob = {
|
||||
email = "patrick@hobusch.net";
|
||||
github = "pathob";
|
||||
githubId = 4580157;
|
||||
name = "Patrick Hobusch";
|
||||
};
|
||||
patka = {
|
||||
email = "patka@patka.dev";
|
||||
github = "patka-123";
|
||||
|
50
pkgs/development/python-modules/tinytuya/default.nix
Normal file
50
pkgs/development/python-modules/tinytuya/default.nix
Normal file
@ -0,0 +1,50 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
@ -15185,6 +15185,8 @@ self: super: with self; {
|
||||
|
||||
tinysegmenter = callPackage ../development/python-modules/tinysegmenter { };
|
||||
|
||||
tinytuya = callPackage ../development/python-modules/tinytuya { };
|
||||
|
||||
tissue = callPackage ../development/python-modules/tissue { };
|
||||
|
||||
titlecase = callPackage ../development/python-modules/titlecase { };
|
||||
|
Loading…
Reference in New Issue
Block a user