1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 poetry-core, 7 aiohttp, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "aiomusiccast"; 13 version = "0.14.8"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "vigonotion"; 20 repo = "aiomusiccast"; 21 tag = version; 22 hash = "sha256-V4xl2QY+pPEnJtx7dxSNj/aXqHvV9Z6uuWgbVHNyLjA="; 23 }; 24 25 postPatch = '' 26 substituteInPlace pyproject.toml \ 27 --replace '"0.0.0"' '"${version}"' 28 ''; 29 30 nativeBuildInputs = [ poetry-core ]; 31 32 propagatedBuildInputs = [ 33 aiohttp 34 setuptools 35 ]; 36 37 # upstream has no tests 38 doCheck = false; 39 40 pythonImportsCheck = [ "aiomusiccast" ]; 41 42 meta = with lib; { 43 description = "Companion library for musiccast devices intended for the Home Assistant integration"; 44 homepage = "https://github.com/vigonotion/aiomusiccast"; 45 changelog = "https://github.com/vigonotion/aiomusiccast/releases/tag/${version}"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ dotlambda ]; 48 }; 49}