fix: use fetchFromGitHub instead of fetchPypi for applemusic-mcp
NixOS Configuration CI / Nix Flake Check (push) Failing after 17s
NixOS Configuration CI / Nix Flake Check (push) Failing after 17s
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.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user