nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 54 lines 1.0 kB view raw
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.3.3"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "music-assistant"; 23 repo = "client"; 24 tag = version; 25 hash = "sha256-f5+25MWuovG/g3PscWt0jls/5Y/Qdt2kq9Ai7/9P4aI="; 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/releases/tag/${src.tag}"; 51 license = lib.licenses.asl20; 52 maintainers = [ ]; 53 }; 54}