{ 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-N97bZyT8TWOrt1WS7W31OJaICwoUxFfcDDuRs+TweTQ="; }; 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; }; }