1{ lib
2, aiohttp
3, asynctest
4, buildPythonPackage
5, fetchFromGitHub
6, pytest-asyncio
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "pymelcloud";
13 version = "2.11.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "vilppuvuorinen";
20 repo = pname;
21 rev = "v${version}";
22 sha256 = "1q6ny58cn9qy86blxbk6l2iklab7y11b734l7yb1bp35dmy27w26";
23 };
24
25 propagatedBuildInputs = [
26 aiohttp
27 ];
28
29 doCheck = pythonOlder "3.11"; # asynctest is unsupported on python3.11
30
31 nativeCheckInputs = [
32 asynctest
33 pytest-asyncio
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "pymelcloud"
39 ];
40
41 meta = with lib; {
42 description = "Python module for interacting with MELCloud";
43 homepage = "https://github.com/vilppuvuorinen/pymelcloud";
44 license = with licenses; [ mit ];
45 maintainers = with maintainers; [ fab ];
46 };
47}