1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5}:
6
7buildPythonPackage rec {
8 pname = "tuyaha";
9 version = "0.0.10";
10
11 src = fetchFromGitHub {
12 owner = "PaulAnnekov";
13 repo = pname;
14 rev = version;
15 sha256 = "0n08mqrz76zv1cyqky6ibs6im1fqcywkiyvfmfabml0vzvr43awf";
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}