From 87e2b844e874901b7d946d578276441924e3d3e1 Mon Sep 17 00:00:00 2001 From: hermes-agent Date: Thu, 25 Jun 2026 16:11:06 +0200 Subject: [PATCH] fix: use fetchFromGitHub instead of fetchPypi for applemusic-mcp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- packages/applemusic-mcp/package.nix | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/packages/applemusic-mcp/package.nix b/packages/applemusic-mcp/package.nix index e2eed9d..b7d8a33 100644 --- a/packages/applemusic-mcp/package.nix +++ b/packages/applemusic-mcp/package.nix @@ -1,7 +1,7 @@ { lib, python3Packages, - fetchPypi, + fetchFromGitHub, }: python3Packages.buildPythonApplication rec { @@ -9,12 +9,11 @@ python3Packages.buildPythonApplication rec { version = "0.15.1"; pyproject = true; - src = fetchPypi { - inherit pname version; - format = "pyproject"; - dist = "py3"; - python = "py3"; - hash = "sha256-qV24IbMAuxMd9uGi7phXl9IvWfbqVU2QO/F1LJ1WJWM="; + src = fetchFromGitHub { + owner = "epheterson"; + repo = "applemusic-mcp"; + rev = "v${version}"; + hash = "sha256-LD3/yKjhKl8oqCL3bmZ+3yv2fDbMZRA0dMbPWHlnzj4="; }; build-system = with python3Packages; [ @@ -23,17 +22,16 @@ python3Packages.buildPythonApplication rec { dependencies = with python3Packages; [ mcp + pyjwt requests - python-dotenv - pydantic + cryptography playwright - rich ]; pythonImportsCheck = [ "applemusic_mcp" ]; meta = with lib; { - description = "MCP server for Apple Music — manage playlists, add music, browse your library"; + 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";