Merge pull request #146629 from fabaff/aiohwenergy

python3Packages.aiohwenergy: init at 0.4.0
This commit is contained in:
Fabian Affolter 2021-11-20 09:35:10 +01:00 committed by GitHub
commit e1a5a8b496
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 { };