1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5}:
6
7buildPythonPackage rec {
8 pname = "tuyaha";
9 version = "0.0.11";
10
11 src = fetchFromGitHub {
12 owner = "PaulAnnekov";
13 repo = pname;
14 rev = version;
15 sha256 = "sha256-PTIw/2NRHHiqV6E5oj2pMeGq1uApevKfT2n5zV8AQmM=";
16 };
17
18 propagatedBuildInputs = [ requests ];
19
20 # Project has no tests
21 doCheck = false;
22 pythonImportsCheck = [ "tuyaha" ];
23
24 meta = with lib; {
25 description = "Python module with the Tuya API";
26 homepage = "https://github.com/PaulAnnekov/tuyaha";
27 license = with licenses; [ mit ];
28 maintainers = with maintainers; [ fab ];
29 };
30}