1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, meteocalc
6, pytest-aiohttp
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "aioecowitt";
13 version = "2022.09.3";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.9";
17
18 src = fetchFromGitHub {
19 owner = "home-assistant-libs";
20 repo = pname;
21 rev = "refs/tags/${version}";
22 hash = "sha256-aYnRHr4YrYmO3a1V8HFac1T37WIC0Abp3Dhy9vDrQfE=";
23 };
24
25 propagatedBuildInputs = [
26 aiohttp
27 meteocalc
28 ];
29
30 checkInputs = [
31 pytest-aiohttp
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "aioecowitt"
37 ];
38
39 meta = with lib; {
40 description = "Wrapper for the EcoWitt protocol";
41 homepage = "https://github.com/home-assistant-libs/aioecowitt";
42 changelog = "https://github.com/home-assistant-libs/aioecowitt/releases/tag/${version}";
43 license = with licenses; [ asl20 ];
44 maintainers = with maintainers; [ fab ];
45 };
46}