at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pyserial-asyncio-fast, 6 pytest-asyncio, 7 pytestCheckHook, 8 pythonOlder, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "pyotgw"; 14 version = "2.2.2"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "mvn23"; 21 repo = "pyotgw"; 22 tag = version; 23 hash = "sha256-BQgRWXBSmB9AzpPeTJP7motJeKF2G0tyqJpbwIwnxwk="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ pyserial-asyncio-fast ]; 29 30 nativeCheckInputs = [ 31 pytest-asyncio 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ "pyotgw" ]; 36 37 disabledTests = [ 38 # Tests require network access 39 "connect_timeouterror" 40 ]; 41 42 meta = with lib; { 43 description = "Python module to interact the OpenTherm Gateway"; 44 homepage = "https://github.com/mvn23/pyotgw"; 45 changelog = "https://github.com/mvn23/pyotgw/blob/${version}/CHANGELOG.md"; 46 license = with licenses; [ gpl3Plus ]; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}