Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aiohttp 3, aioresponses 4, buildPythonPackage 5, fetchFromGitHub 6, pytest-asyncio 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "incomfort-client"; 13 version = "0.5.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "zxdavb"; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-kdPue3IfF85O+0dgvX+dN6S4WoQmjxdCfwfv83SnO8E="; 23 }; 24 25 propagatedBuildInputs = [ 26 aiohttp 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 checkInputs = [ 34 aioresponses 35 pytest-asyncio 36 ]; 37 38 pythonImportsCheck = [ 39 "incomfortclient" 40 ]; 41 42 meta = with lib; { 43 description = "Python module to poll Intergas boilers via a Lan2RF gateway"; 44 homepage = "https://github.com/zxdavb/incomfort-client"; 45 license = with licenses; [ mit ]; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}