1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6, setuptools
7}:
8
9buildPythonPackage rec {
10 pname = "aioairzone";
11 version = "0.6.9";
12 format = "pyproject";
13
14 disabled = pythonOlder "3.11";
15
16 src = fetchFromGitHub {
17 owner = "Noltari";
18 repo = pname;
19 rev = "refs/tags/${version}";
20 hash = "sha256-0nbH0pnTYRuSOkzG5Yn/fJmRKtXBMd6ti6Z+AW72j3Q=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 ];
26
27 propagatedBuildInputs = [
28 aiohttp
29 ];
30
31 # Module has no tests
32 doCheck = false;
33
34 pythonImportsCheck = [
35 "aioairzone"
36 ];
37
38 meta = with lib; {
39 description = "Module to control AirZone devices";
40 homepage = "https://github.com/Noltari/aioairzone";
41 changelog = "https://github.com/Noltari/aioairzone/releases/tag/${version}";
42 license = with licenses; [ asl20 ];
43 maintainers = with maintainers; [ fab ];
44 };
45}
46