Merge pull request #310521 from pathob/python-package-tinytunya

python311Packages.tinytuya: init at 0.1.51

authored by OTABI Tomoya and committed by GitHub 6980cd17 13327288

+58
+6
maintainers/maintainer-list.nix
··· 15441 15441 githubId = 72527881; 15442 15442 name = "PassiveLemon"; 15443 15443 }; 15444 + pathob = { 15445 + email = "patrick@hobusch.net"; 15446 + github = "pathob"; 15447 + githubId = 4580157; 15448 + name = "Patrick Hobusch"; 15449 + }; 15444 15450 patka = { 15445 15451 email = "patka@patka.dev"; 15446 15452 github = "patka-123";
+50
pkgs/development/python-modules/tinytuya/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + 5 + # build-system 6 + , setuptools 7 + 8 + # dependencies 9 + , cryptography 10 + , requests 11 + , colorama 12 + }: 13 + 14 + buildPythonPackage rec { 15 + pname = "tinytuya"; 16 + version = "1.13.2"; 17 + pyproject = true; 18 + 19 + src = fetchFromGitHub { 20 + owner = "jasonacox"; 21 + repo = "tinytuya"; 22 + rev = "refs/tags/v${version}"; 23 + hash = "sha256-44x5P+Ej/d6B5n53iDuLDBzkeZZvArpcgzXLJBcIJe0="; 24 + }; 25 + 26 + build-system = [ 27 + setuptools 28 + ]; 29 + 30 + dependencies = [ 31 + cryptography 32 + requests 33 + colorama 34 + ]; 35 + 36 + # Tests require real network resources 37 + doCheck = false; 38 + 39 + pythonImportsCheck = [ 40 + "tinytuya" 41 + ]; 42 + 43 + meta = with lib; { 44 + description = "Python API for Tuya WiFi smart devices using a direct local area network (LAN) connection or the cloud (TuyaCloud API)"; 45 + homepage = "https://github.com/jasonacox/tinytuya"; 46 + changelog = "https://github.com/jasonacox/tinytuya/releases/tag/v${version}"; 47 + license = licenses.mit; 48 + maintainers = with maintainers; [ pathob ]; 49 + }; 50 + }
+2
pkgs/top-level/python-packages.nix
··· 15185 15185 15186 15186 tinysegmenter = callPackage ../development/python-modules/tinysegmenter { }; 15187 15187 15188 + tinytuya = callPackage ../development/python-modules/tinytuya { }; 15189 + 15188 15190 tissue = callPackage ../development/python-modules/tissue { }; 15189 15191 15190 15192 titlecase = callPackage ../development/python-modules/titlecase { };