Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 54 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies aiohttp, music-assistant-models, orjson,
}:
buildPythonPackage rec { pname = "music-assistant-client"; version = "1.2.4"; pyproject = true;
src = fetchFromGitHub { owner = "music-assistant"; repo = "client"; tag = version; hash = "sha256-0NgV/xa8jF+j+oIZllgT7UI4MRsP3vTDarluLgtSZwI="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "0.0.0" "${version}" '';
build-system = [ setuptools ];
dependencies = [ aiohttp music-assistant-models orjson ];
doCheck = false; # no tests
pythonImportsCheck = [ "music_assistant_client" ];
meta = { description = "Python client to interact with the Music Assistant Server API"; homepage = "https://github.com/music-assistant/client"; changelog = "https://github.com/music-assistant/client/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ ]; };}