at 23.05-pre 981 B view raw
1{ lib 2, aiohttp 3, aresponses 4, async-modbus 5, async-timeout 6, buildPythonPackage 7, construct 8, fetchFromGitHub 9, pytest-asyncio 10, pytestCheckHook 11, pythonOlder 12, setuptools 13, tenacity 14}: 15 16buildPythonPackage rec { 17 pname = "nibe"; 18 version = "1.2.1"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.9"; 22 23 src = fetchFromGitHub { 24 owner = "yozik04"; 25 repo = pname; 26 rev = "refs/tags/${version}"; 27 hash = "sha256-y1/yZE5Gfj2XPscZ27TNXOM/VGy/iIFkvg2TCNsh4tI="; 28 }; 29 30 nativeBuildInputs = [ 31 setuptools 32 ]; 33 34 propagatedBuildInputs = [ 35 async-modbus 36 async-timeout 37 construct 38 tenacity 39 ]; 40 41 checkInputs = [ 42 aresponses 43 pytest-asyncio 44 pytestCheckHook 45 ]; 46 47 pythonImportsCheck = [ 48 "nibe" 49 ]; 50 51 meta = with lib; { 52 description = "Library for the communication with Nibe heatpumps"; 53 homepage = "https://github.com/yozik04/nibe"; 54 license = with licenses; [ gpl3Plus ]; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}