1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 aiohttp, 11 music-assistant-models, 12 orjson, 13 14}: 15 16buildPythonPackage rec { 17 pname = "music-assistant-client"; 18 version = "1.2.4"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "music-assistant"; 23 repo = "client"; 24 tag = version; 25 hash = "sha256-0NgV/xa8jF+j+oIZllgT7UI4MRsP3vTDarluLgtSZwI="; 26 }; 27 28 postPatch = '' 29 substituteInPlace pyproject.toml \ 30 --replace-fail "0.0.0" "${version}" 31 ''; 32 33 build-system = [ setuptools ]; 34 35 dependencies = [ 36 aiohttp 37 music-assistant-models 38 orjson 39 ]; 40 41 doCheck = false; # no tests 42 43 pythonImportsCheck = [ 44 "music_assistant_client" 45 ]; 46 47 meta = { 48 description = "Python client to interact with the Music Assistant Server API"; 49 homepage = "https://github.com/music-assistant/client"; 50 changelog = "https://github.com/music-assistant/client/blob/${src.tag}/CHANGELOG.md"; 51 license = lib.licenses.asl20; 52 maintainers = with lib.maintainers; [ ]; 53 }; 54}