diff --git a/pkgs/by-name/mc/mcp-nixos/package.nix b/pkgs/by-name/mc/mcp-nixos/package.nix index 9216ba38d076..8a843fb2b5d1 100644 --- a/pkgs/by-name/mc/mcp-nixos/package.nix +++ b/pkgs/by-name/mc/mcp-nixos/package.nix @@ -1,7 +1,7 @@ { lib, - stdenv, fetchFromGitHub, + fetchpatch, python3Packages, }: @@ -17,6 +17,13 @@ python3Packages.buildPythonApplication (finalAttrs: { hash = "sha256-mWq9nnL4IGhUFkXJr8+t6BresOTDFS1caG8NuFqjrJg="; }; + patches = [ + (fetchpatch { + url = "https://github.com/utensils/mcp-nixos/commit/0ef99b6a5674e60ca315dc55a0f458673bb1e4fa.patch"; + sha256 = "sha256-f57qS6V8mSv2kLKiudSG2enAofeUZwKvjfdowmGRIxw="; + }) + ]; + build-system = [ python3Packages.hatchling ]; dependencies = with python3Packages; [ @@ -40,9 +47,6 @@ python3Packages.buildPythonApplication (finalAttrs: { disabledTests = [ # Requires network access "test_valid_channel" - ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - "test_read_text_file" ]; pythonImportsCheck = [ "mcp_nixos" ];