Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.2 kB view raw
1{ lib 2, aiohttp 3, async-timeout 4, buildPythonPackage 5, fetchFromGitHub 6, gql 7, graphql-subscription-manager 8, pytest-asyncio 9, pytestCheckHook 10, python-dateutil 11, pythonOlder 12, pytz 13}: 14 15buildPythonPackage rec { 16 pname = "pytibber"; 17 version = "0.27.2"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.9"; 21 22 src = fetchFromGitHub { 23 owner = "Danielhiversen"; 24 repo = "pyTibber"; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-8JeQvvCxKAmFy8kiXVD+l1EBv5mO1rWYoAg+iLjapRw="; 27 }; 28 29 propagatedBuildInputs = [ 30 aiohttp 31 async-timeout 32 gql 33 graphql-subscription-manager 34 python-dateutil 35 ] ++ gql.optional-dependencies.websockets; 36 37 nativeCheckInputs = [ 38 pytest-asyncio 39 pytestCheckHook 40 ]; 41 42 pytestFlagsArray = [ 43 "test/test.py" 44 ]; 45 46 # Tests access network 47 doCheck = false; 48 49 pythonImportsCheck = [ 50 "tibber" 51 ]; 52 53 meta = with lib; { 54 description = "Python library to communicate with Tibber"; 55 homepage = "https://github.com/Danielhiversen/pyTibber"; 56 changelog = "https://github.com/Danielhiversen/pyTibber/releases/tag/${version}"; 57 license = licenses.mit; 58 maintainers = with maintainers; [ dotlambda ]; 59 }; 60}