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