{ lib, aiohttp, buildPythonPackage, fetchFromGitHub, gql, pytest-asyncio, pytestCheckHook, pythonOlder, setuptools, websockets, }: buildPythonPackage (finalAttrs: { pname = "pytibber"; version = "0.35.0"; pyproject = true; disabled = pythonOlder "3.11"; src = fetchFromGitHub { owner = "Danielhiversen"; repo = "pyTibber"; tag = finalAttrs.version; hash = "sha256-zipHn6ZLRwRtvTKgJTrTSZwETviwLOPS8rMTRB3fErs="; }; build-system = [ setuptools ]; pythonRelaxDeps = [ "gql" ]; dependencies = [ aiohttp gql websockets ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; disabledTestPaths = [ # Tests access network "test/test_tibber.py" ]; pythonImportsCheck = [ "tibber" ]; meta = { description = "Python library to communicate with Tibber"; homepage = "https://github.com/Danielhiversen/pyTibber"; changelog = "https://github.com/Danielhiversen/pyTibber/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ dotlambda ]; }; })