1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 click,
6 fetchFromGitHub,
7 hatchling,
8 pythonOlder,
9 voluptuous,
10}:
11
12buildPythonPackage rec {
13 pname = "evohome-async";
14 version = "0.4.19";
15 pyproject = true;
16
17 disabled = pythonOlder "3.11";
18
19 src = fetchFromGitHub {
20 owner = "zxdavb";
21 repo = "evohome-async";
22 rev = "refs/tags/${version}";
23 hash = "sha256-B7LvGXAZO1pd9iCuZjW/bRWdB5PEzfcQjZWokGzMN70=";
24 };
25
26 nativeBuildInputs = [ hatchling ];
27
28 propagatedBuildInputs = [
29 aiohttp
30 click
31 voluptuous
32 ];
33
34 # Project has no tests
35 doCheck = false;
36
37 pythonImportsCheck = [ "evohomeasync2" ];
38
39 meta = with lib; {
40 description = "Python client for connecting to Honeywell's TCC RESTful API";
41 homepage = "https://github.com/zxdavb/evohome-async";
42 license = with licenses; [ asl20 ];
43 maintainers = with maintainers; [ fab ];
44 mainProgram = "evo-client";
45 };
46}