1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, aiohttp 6, async-timeout 7, graphql-subscription-manager 8, python-dateutil 9, pytest-asyncio 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "pytibber"; 15 version = "0.25.6"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "Danielhiversen"; 22 repo = "pyTibber"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-aGl43gxrnKwo3ZhN+EpSBMZw0wKWf5aIPFx3goo8Nog="; 25 }; 26 27 propagatedBuildInputs = [ 28 aiohttp 29 async-timeout 30 graphql-subscription-manager 31 python-dateutil 32 ]; 33 34 checkInputs = [ 35 pytest-asyncio 36 pytestCheckHook 37 ]; 38 39 pytestFlagsArray = [ 40 "test/test.py" 41 ]; 42 43 # tests access network 44 doCheck = false; 45 46 pythonImportsCheck = [ 47 "tibber" 48 ]; 49 50 meta = with lib; { 51 description = "Python library to communicate with Tibber"; 52 homepage = "https://github.com/Danielhiversen/pyTibber"; 53 license = licenses.mit; 54 maintainers = with maintainers; [ dotlambda ]; 55 }; 56}