Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
3.1 kB · 130 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131{ lib, stdenv, buildPythonPackage, fetchFromGitHub, writableTmpDirAsHomeHook,
# build-system hatchling, uv-dynamic-versioning,
# dependencies authlib, cyclopts, exceptiongroup, httpx, mcp, openapi-core, openapi-pydantic, pydantic, pyperclip, python-dotenv, rich,
# tests dirty-equals, email-validator, fastapi, pytest-asyncio, pytest-httpx, pytestCheckHook,}:
buildPythonPackage rec { pname = "fastmcp"; version = "2.11.3"; pyproject = true;
src = fetchFromGitHub { owner = "jlowin"; repo = "fastmcp"; tag = "v${version}"; hash = "sha256-jIXrMyNnyPE2DUgg+sxT6LD4dTmKQglh4cFuaw179Z0="; };
build-system = [ hatchling uv-dynamic-versioning ];
dependencies = [ authlib cyclopts exceptiongroup httpx mcp openapi-core openapi-pydantic pyperclip python-dotenv rich ];
pythonImportsCheck = [ "fastmcp" ];
nativeCheckInputs = [ dirty-equals email-validator fastapi pydantic pytest-asyncio pytest-httpx pytestCheckHook writableTmpDirAsHomeHook ] ++ pydantic.optional-dependencies.email;
disabledTests = [ # AssertionError: assert 'INFO' == 'DEBUG' "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" "test_run_mcp_config" "test_uv_transport" "test_uv_transport_module" "test_github_api_schema_performance"
# 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" "test_canonical_multi_client_with_transforms"
# fastmcp.exceptions.ToolError: Unknown tool "test_multi_client_with_logging" "test_multi_client_with_elicitation" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # RuntimeError: Server failed to start after 10 attempts "test_unauthorized_access" ];
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ # RuntimeError: Server failed to start after 10 attempts "tests/client/auth/test_oauth_client.py" "tests/client/test_openapi_experimental.py" "tests/client/test_openapi_legacy.py" "tests/client/test_sse.py" "tests/client/test_streamable_http.py" "tests/server/auth/test_jwt_provider.py" "tests/server/http/test_http_dependencies.py" ];
__darwinAllowLocalNetworking = true;
meta = { description = "Fast, Pythonic way to build MCP servers and clients"; changelog = "https://github.com/jlowin/fastmcp/releases/tag/${src.tag}"; homepage = "https://github.com/jlowin/fastmcp"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; };}