python3Packages.aiohwenergy: init at 0.4.0

This commit is contained in:
Fabian Affolter 2021-11-19 14:21:40 +01:00
parent 293e6f0ce5
commit b7dfc54d73
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiohwenergy";
version = "0.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "DCSBL";
repo = pname;
rev = version;
sha256 = "Rs7kD+jN/z0j4KmkitquB+cm2UcYG87YHczZR0A4axI=";
};
propagatedBuildInputs = [
aiohttp
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"aiohwenergy"
];
meta = with lib; {
description = "Python library to interact with the HomeWizard Energy devices API";
homepage = "https://github.com/DCSBL/aiohwenergy";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -317,6 +317,8 @@ in {
aiohue = callPackage ../development/python-modules/aiohue { };
aiohwenergy = callPackage ../development/python-modules/aiohwenergy { };
aioimaplib = callPackage ../development/python-modules/aioimaplib { };
aioinflux = callPackage ../development/python-modules/aioinflux { };