python3Packages.fastmcp: 2.8.0 -> 2.10.6
This commit is contained in:
parent
084630f0e9
commit
4a32f944c9
@ -10,31 +10,35 @@
|
|||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
authlib,
|
authlib,
|
||||||
|
cyclopts,
|
||||||
exceptiongroup,
|
exceptiongroup,
|
||||||
httpx,
|
httpx,
|
||||||
mcp,
|
mcp,
|
||||||
openapi-pydantic,
|
openapi-pydantic,
|
||||||
|
pydantic,
|
||||||
|
pyperclip,
|
||||||
python-dotenv,
|
python-dotenv,
|
||||||
rich,
|
rich,
|
||||||
typer,
|
|
||||||
|
|
||||||
# tests
|
# tests
|
||||||
dirty-equals,
|
dirty-equals,
|
||||||
|
email-validator,
|
||||||
fastapi,
|
fastapi,
|
||||||
|
pytest-asyncio,
|
||||||
pytest-httpx,
|
pytest-httpx,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "fastmcp";
|
pname = "fastmcp";
|
||||||
version = "2.8.0";
|
version = "2.10.6";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jlowin";
|
owner = "jlowin";
|
||||||
repo = "fastmcp";
|
repo = "fastmcp";
|
||||||
tag = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-FleJkqdUIhGsV+DVYv/Nf5IORntH/aFq9abKn2r/6Is=";
|
hash = "sha256-Wxugk2ocuur710WZLG7xph2R/n02Y9BvH7Lf4BuEMYs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -49,28 +53,51 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
authlib
|
authlib
|
||||||
|
cyclopts
|
||||||
exceptiongroup
|
exceptiongroup
|
||||||
httpx
|
httpx
|
||||||
mcp
|
mcp
|
||||||
openapi-pydantic
|
openapi-pydantic
|
||||||
|
pyperclip
|
||||||
python-dotenv
|
python-dotenv
|
||||||
rich
|
rich
|
||||||
typer
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "fastmcp" ];
|
pythonImportsCheck = [ "fastmcp" ];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
dirty-equals
|
dirty-equals
|
||||||
|
email-validator
|
||||||
fastapi
|
fastapi
|
||||||
|
pydantic
|
||||||
|
pytest-asyncio
|
||||||
pytest-httpx
|
pytest-httpx
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
writableTmpDirAsHomeHook
|
writableTmpDirAsHomeHook
|
||||||
];
|
]
|
||||||
|
++ pydantic.optional-dependencies.email;
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# AssertionError: assert 'INFO' == 'DEBUG'
|
# AssertionError: assert 'INFO' == 'DEBUG'
|
||||||
"test_temporary_settings"
|
"test_temporary_settings"
|
||||||
|
|
||||||
|
# RuntimeError: Client failed to connect: Connection close
|
||||||
|
"test_keep_alive_maintains_session_across_multiple_calls"
|
||||||
|
"test_keep_alive_false_starts_new_session_across_multiple_calls"
|
||||||
|
"test_keep_alive_starts_new_session_if_manually_closed"
|
||||||
|
"test_keep_alive_maintains_session_if_reentered"
|
||||||
|
"test_close_session_and_try_to_use_client_raises_error"
|
||||||
|
|
||||||
|
# RuntimeError: Client failed to connect: Timed out while waiting for response
|
||||||
|
"test_timeout"
|
||||||
|
"test_timeout_tool_call_overrides_client_timeout_even_if_lower"
|
||||||
|
|
||||||
|
# assert 0 == 2
|
||||||
|
"test_multi_client"
|
||||||
|
|
||||||
|
# fastmcp.exceptions.ToolError: Unknown tool
|
||||||
|
"test_multi_client_with_logging"
|
||||||
|
"test_multi_client_with_elicitation"
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
|
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user