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