Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 81 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling, tomli,
# dependencies fastapi, httpx, mcp, pydantic, pydantic-settings, requests, rich, typer, uvicorn,
# tests coverage, pytest-asyncio, pytest-cov-stub, pytestCheckHook,}:
buildPythonPackage rec { pname = "fastapi-mcp"; version = "0.4.0"; pyproject = true;
src = fetchFromGitHub { owner = "tadata-org"; repo = "fastapi_mcp"; tag = "v${version}"; hash = "sha256-TCmM5n6BF3CWEuGVSZnUL2rTYitKtn4vSCkiQvKFLKw="; };
build-system = [ hatchling tomli ];
dependencies = [ fastapi httpx mcp pydantic pydantic-settings requests rich tomli typer uvicorn ];
pythonImportsCheck = [ "fastapi_mcp" ];
nativeCheckInputs = [ coverage pytest-asyncio pytest-cov-stub pytestCheckHook ];
disabledTestPaths = [ # Flaky, would try to allocate a port on Darwin "tests/test_sse_real_transport.py" ];
__darwinAllowLocalNetworking = true;
meta = { description = "Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth"; homepage = "https://github.com/tadata-org/fastapi_mcp"; changelog = "https://github.com/tadata-org/fastapi_mcp/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; };}