Files
mcp-servers/packages/applemusic-mcp/package.nix
T
hermes-agent 87e2b844e8
NixOS Configuration CI / Nix Flake Check (push) Failing after 17s
fix: use fetchFromGitHub instead of fetchPypi for applemusic-mcp
fetchPypi with pyproject format was causing "Unsupported format pyproject"
error. Switched to fetchFromGitHub to match the pattern used by other
packages in this repo (e.g. zotero-mcp).

Note: the SRI hash is a placeholder — run `nix build .#applemusic-mcp`
and replace with the correct hash from the error output on first build.
2026-06-25 16:11:06 +02:00

41 lines
849 B
Nix

{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "applemusic-mcp";
version = "0.15.1";
pyproject = true;
src = fetchFromGitHub {
owner = "epheterson";
repo = "applemusic-mcp";
rev = "v${version}";
hash = "sha256-LD3/yKjhKl8oqCL3bmZ+3yv2fDbMZRA0dMbPWHlnzj4=";
};
build-system = with python3Packages; [
hatchling
];
dependencies = with python3Packages; [
mcp
pyjwt
requests
cryptography
playwright
];
pythonImportsCheck = [ "applemusic_mcp" ];
meta = with lib; {
description = "MCP server for Apple Music — manage playlists, search catalog, browse library";
homepage = "https://github.com/epheterson/applemusic-mcp";
license = licenses.mit;
mainProgram = "applemusic-mcp";
platforms = platforms.all;
};
}