1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 gql, 7 pytest-asyncio, 8 pytestCheckHook, 9 pythonOlder, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "pytibber"; 15 version = "0.29.1"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.11"; 19 20 src = fetchFromGitHub { 21 owner = "Danielhiversen"; 22 repo = "pyTibber"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-fKeNQifSCxsqR2mhK2w5kG669byYNNLkfxAYTUtfWE0="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 aiohttp 31 gql 32 ] ++ gql.optional-dependencies.websockets; 33 34 nativeCheckInputs = [ 35 pytest-asyncio 36 pytestCheckHook 37 ]; 38 39 pytestFlagsArray = [ "test/test.py" ]; 40 41 # Tests access network 42 doCheck = false; 43 44 pythonImportsCheck = [ "tibber" ]; 45 46 meta = with lib; { 47 description = "Python library to communicate with Tibber"; 48 homepage = "https://github.com/Danielhiversen/pyTibber"; 49 changelog = "https://github.com/Danielhiversen/pyTibber/releases/tag/${version}"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ dotlambda ]; 52 }; 53}