d2947cfef0
GitOrigin-RevId: 598f83ebeb2235435189cf84d844b8b73e858e0f
56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, aiohttp
|
|
, async-timeout
|
|
, graphql-subscription-manager
|
|
, python-dateutil
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytibber";
|
|
version = "0.25.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Danielhiversen";
|
|
repo = "pyTibber";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-QpKPGAksaKfdLpiBn4fbVxTsoBUd8S6loSKF+EE443g=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
async-timeout
|
|
graphql-subscription-manager
|
|
python-dateutil
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"test/test.py"
|
|
];
|
|
|
|
# tests access network
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"tibber"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to communicate with Tibber";
|
|
homepage = "https://github.com/Danielhiversen/pyTibber";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|