python3Packages.tibber: init at 0.17.1
This commit is contained in:
parent
6deaecd116
commit
9414a47d63
2 changed files with 53 additions and 0 deletions
51
pkgs/development/python-modules/pytibber/default.nix
Normal file
51
pkgs/development/python-modules/pytibber/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue