1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pyserial-asyncio 5, pytest-asyncio 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "pyotgw"; 12 version = "2.1.3"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "mvn23"; 19 repo = pname; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-XIwBGjvIulKLmYZIorKIJwoHTNOIYYX8US2Na8MZ2LA="; 22 }; 23 24 propagatedBuildInputs = [ 25 pyserial-asyncio 26 ]; 27 28 nativeCheckInputs = [ 29 pytest-asyncio 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "pyotgw" 35 ]; 36 37 meta = with lib; { 38 description = "Python module to interact the OpenTherm Gateway"; 39 homepage = "https://github.com/mvn23/pyotgw"; 40 changelog = "https://github.com/mvn23/pyotgw/blob/${version}/CHANGELOG.md"; 41 license = with licenses; [ gpl3Plus ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}