python312Packages.fastmcp: init at 2.4.0

This commit is contained in:
Gaetan Lepage
2025-05-22 14:20:43 +02:00
parent 46381e0f8e
commit bb60182678
2 changed files with 75 additions and 0 deletions
@@ -0,0 +1,73 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
# dependencies
exceptiongroup,
httpx,
mcp,
openapi-pydantic,
python-dotenv,
rich,
typer,
websockets,
# tests
dirty-equals,
fastapi,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "fastmcp";
version = "2.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jlowin";
repo = "fastmcp";
tag = "v${version}";
hash = "sha256-F4lgMm/84svLZo6SZ7AubsC73s4tffqjJcd9gvA7hGA=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail ', "uv-dynamic-versioning>=0.7.0"' "" \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
build-system = [
hatchling
];
dependencies = [
exceptiongroup
httpx
mcp
openapi-pydantic
python-dotenv
rich
typer
websockets
];
pythonImportsCheck = [ "fastmcp" ];
nativeCheckInputs = [
dirty-equals
fastapi
pytestCheckHook
];
meta = {
description = "The fast, Pythonic way to build MCP servers and clients";
changelog = "https://github.com/jlowin/fastmcp/releases/tag/v${version}";
homepage = "https://github.com/jlowin/fastmcp";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
+2
View File
@@ -4841,6 +4841,8 @@ self: super: with self; {
fastjsonschema = callPackage ../development/python-modules/fastjsonschema { };
fastmcp = callPackage ../development/python-modules/fastmcp { };
fastmri = callPackage ../development/python-modules/fastmri { };
fastnlo-toolkit = toPythonModule (