1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, aiohttp 6, async-timeout 7, graphql-subscription-manager 8, python-dateutil 9, pytz 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "pytibber"; 15 version = "0.21.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "Danielhiversen"; 22 repo = "pyTibber"; 23 rev = version; 24 sha256 = "sha256-lUe79VHlK/2/1SZfC+Ha+27NUoIKoTlqn75XA/mPCNU="; 25 }; 26 27 propagatedBuildInputs = [ 28 aiohttp 29 async-timeout 30 graphql-subscription-manager 31 python-dateutil 32 pytz 33 ]; 34 35 checkInputs = [ 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}