1{ 2 lib, 3 aiohttp, 4 async-timeout, 5 buildPythonPackage, 6 fetchFromGitHub, 7 pillow, 8 pythonOlder, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "aioslimproto"; 14 version = "3.1.1"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.11"; 18 19 src = fetchFromGitHub { 20 owner = "home-assistant-libs"; 21 repo = "aioslimproto"; 22 tag = version; 23 hash = "sha256-L52Y6nOE77t0+vx4t2Ix39Xk0zxJklaGbBDuwWo1qek="; 24 }; 25 26 postPatch = '' 27 substituteInPlace pyproject.toml \ 28 --replace-fail 'version = "0.0.0"' 'version = "${version}"' 29 ''; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 aiohttp 35 async-timeout 36 pillow 37 ]; 38 39 # Module has no tests 40 doCheck = false; 41 42 pythonImportsCheck = [ "aioslimproto" ]; 43 44 meta = with lib; { 45 description = "Module to control Squeezebox players"; 46 homepage = "https://github.com/home-assistant-libs/aioslimproto"; 47 changelog = "https://github.com/home-assistant-libs/aioslimproto/releases/tag/${src.tag}"; 48 license = licenses.asl20; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}