python3Packages.tibber: init at 0.17.1

This commit is contained in:
Robert Schütz 2021-06-15 15:06:16 +02:00
parent 6deaecd116
commit 9414a47d63
2 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, aiohttp
, async-timeout
, graphql-subscription-manager
, python-dateutil
, pytz
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytibber";
version = "0.17.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "pyTibber";
rev = version;
sha256 = "1zda9cvg6hy0n7sr2z71lkyl93n1gnzxrvf56lhz13pcsffshhdk";
};
propagatedBuildInputs = [
aiohttp
async-timeout
graphql-subscription-manager
python-dateutil
pytz
];
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [ "test/test.py" ];
# tests access network
doCheck = false;
pythonImportsCheck = [ "tibber" ];
meta = with lib; {
description = "A python3 library to communicate with Tibber";
homepage = "https://github.com/Danielhiversen/pyTibber";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -6973,6 +6973,8 @@ in {
pyeverlights = callPackage ../development/python-modules/pyeverlights { };
pytibber = callPackage ../development/python-modules/pytibber { };
pytile = callPackage ../development/python-modules/pytile { };
pytimeparse = callPackage ../development/python-modules/pytimeparse { };