From 59ff5c82d609bae7abd406eb7cf9d9f4ea349e63 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 6 Jun 2025 10:25:07 +0200 Subject: [PATCH] python3Packages.mcp: 1.9.1 -> 1.9.3 Diff: https://github.com/modelcontextprotocol/python-sdk/compare/refs/tags/v1.9.1...refs/tags/v1.9.3 Changelog: https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.9.3 --- pkgs/development/python-modules/mcp/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/mcp/default.nix b/pkgs/development/python-modules/mcp/default.nix index 2603fcc4cfd5..71c8c93869ac 100644 --- a/pkgs/development/python-modules/mcp/default.nix +++ b/pkgs/development/python-modules/mcp/default.nix @@ -27,22 +27,24 @@ websockets, # tests + inline-snapshot, pytest-asyncio, pytest-examples, + pytest-xdist, pytestCheckHook, requests, }: buildPythonPackage rec { pname = "mcp"; - version = "1.9.1"; + version = "1.9.3"; pyproject = true; src = fetchFromGitHub { owner = "modelcontextprotocol"; repo = "python-sdk"; tag = "v${version}"; - hash = "sha256-8u02/tHR2F1CpjcHXHC8sZC+/JrWz1satqYa/zdSGDw="; + hash = "sha256-3r7NG2AnxxKgAAd3n+tjjPTz4WJRmc7isfh3p21hUa0="; }; postPatch = '' @@ -85,8 +87,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "mcp" ]; nativeCheckInputs = [ + inline-snapshot pytest-asyncio pytest-examples + pytest-xdist pytestCheckHook requests ] ++ lib.flatten (lib.attrValues optional-dependencies); @@ -108,6 +112,9 @@ buildPythonPackage rec { # AttributeError: 'coroutine' object has no attribute 'client_metadata' "TestOAuthClientProvider" + + # inline_snapshot._exceptions.UsageError: snapshot value should not change. Use Is(...) for dynamic snapshot parts + "test_build_metadata" ]; __darwinAllowLocalNetworking = true;