nixpkgs/pkgs/development/python-modules/pytibber/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.0 KiB
Nix
Raw Normal View History

2021-06-15 13:06:16 +00:00
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, aiohttp
, async-timeout
, graphql-subscription-manager
, python-dateutil
, pytz
, pytest-asyncio
2021-06-15 13:06:16 +00:00
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytibber";
version = "0.22.3";
format = "setuptools";
2021-06-15 13:06:16 +00:00
disabled = pythonOlder "3.9";
2021-06-15 13:06:16 +00:00
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "pyTibber";
rev = version;
hash = "sha256-tM8Uu/TpP5a7y+ePFko0bMoZJWG2efYA861Ez8dPeFY=";
2021-06-15 13:06:16 +00:00
};
propagatedBuildInputs = [
aiohttp
async-timeout
graphql-subscription-manager
python-dateutil
pytz
];
checkInputs = [
pytest-asyncio
2021-06-15 13:06:16 +00:00
pytestCheckHook
];
pytestFlagsArray = [
"test/test.py"
];
2021-06-15 13:06:16 +00:00
# tests access network
doCheck = false;
pythonImportsCheck = [
"tibber"
];
2021-06-15 13:06:16 +00:00
meta = with lib; {
description = "Python library to communicate with Tibber";
2021-06-15 13:06:16 +00:00
homepage = "https://github.com/Danielhiversen/pyTibber";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}