1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "aiohwenergy";
11 version = "0.8.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "DCSBL";
18 repo = "aiohwenergy";
19 rev = version;
20 hash = "sha256-WfkwIxyDzLNzhWNWST/V3iN9Bhu2oXDwGiA5UXCq5ho=";
21 };
22
23 propagatedBuildInputs = [ aiohttp ];
24
25 # Project has no tests
26 doCheck = false;
27
28 pythonImportsCheck = [ "aiohwenergy" ];
29
30 meta = with lib; {
31 description = "Python library to interact with the HomeWizard Energy devices API";
32 homepage = "https://github.com/DCSBL/aiohwenergy";
33 license = licenses.asl20;
34 maintainers = with maintainers; [ fab ];
35 };
36}