{ lib , buildPythonPackage , pythonOlder , fetchFromGitHub , aiohttp , async-timeout , gql , python-dateutil , pytest-asyncio , pytestCheckHook }: buildPythonPackage rec { pname = "pytibber"; version = "0.26.1"; format = "setuptools"; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "Danielhiversen"; repo = "pyTibber"; rev = "refs/tags/${version}"; hash = "sha256-Bok5dtEpteo20vnQa0myxFHiu2BViqlvKZ5TxAkfFUM="; }; propagatedBuildInputs = [ aiohttp async-timeout gql python-dateutil ] ++ gql.optional-dependencies.websockets; checkInputs = [ pytest-asyncio pytestCheckHook ]; pytestFlagsArray = [ "test/test.py" ]; # tests access network doCheck = false; pythonImportsCheck = [ "tibber" ]; meta = with lib; { changelog = "https://github.com/Danielhiversen/pyTibber/releases/tag/${version}"; description = "Python library to communicate with Tibber"; homepage = "https://github.com/Danielhiversen/pyTibber"; license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; }; }