1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 incremental, 8 pythonOlder, 9 pytest-asyncio, 10 pytestCheckHook, 11 setuptools, 12}: 13 14buildPythonPackage rec { 15 pname = "aiolyric"; 16 version = "2.0.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.11"; 20 21 src = fetchFromGitHub { 22 owner = "timmo001"; 23 repo = "aiolyric"; 24 tag = version; 25 hash = "sha256-pN/F4Rdov06sm1yfJQEzmWyujWVeVU+bNGGkgnN4jYw="; 26 }; 27 28 postPatch = '' 29 substituteInPlace requirements_setup.txt \ 30 --replace-fail "==" ">=" 31 ''; 32 33 build-system = [ 34 incremental 35 setuptools 36 ]; 37 38 dependencies = [ 39 aiohttp 40 incremental 41 ]; 42 43 nativeCheckInputs = [ 44 aioresponses 45 pytest-asyncio 46 pytestCheckHook 47 ]; 48 49 pythonImportsCheck = [ "aiolyric" ]; 50 51 meta = with lib; { 52 description = "Python module for the Honeywell Lyric Platform"; 53 homepage = "https://github.com/timmo001/aiolyric"; 54 changelog = "https://github.com/timmo001/aiolyric/releases/tag/v${version}"; 55 license = with licenses; [ mit ]; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}