58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "mcp-email-server";
|
|
version = "1.9.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Wh1isper";
|
|
repo = "mcp-email-server";
|
|
rev = "1.9.1";
|
|
hash = "sha256-FGjpRkVOFLkqY45Wl1lBuSWZvUnkyESZPeAB+d+1KYw=";
|
|
};
|
|
|
|
build-system = with python3Packages; [
|
|
hatchling
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
aioimaplib
|
|
aiosmtplib
|
|
anyio
|
|
beautifulsoup4
|
|
click
|
|
jinja2
|
|
keyring
|
|
loguru
|
|
mcp
|
|
pydantic
|
|
pydantic-settings
|
|
starlette
|
|
tomli-w
|
|
typer
|
|
email-validator
|
|
filelock
|
|
uvicorn
|
|
];
|
|
|
|
doCheck = false;
|
|
# mcp transitively requires filelock>=3.32.2 but nixpkgs ships 3.29.7;
|
|
# the runtime-deps check is too strict, so skip it (same as nextcloud-mcp-server).
|
|
dontCheckRuntimeDeps = true;
|
|
|
|
pythonImportsCheck = [ "mcp_email_server" ];
|
|
|
|
meta = with lib; {
|
|
description = "MCP server for email - send, receive, search, and manage mail over IMAP/SMTP";
|
|
homepage = "https://github.com/Wh1isper/mcp-email-server";
|
|
license = licenses.mit;
|
|
mainProgram = "mcp-email-server";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|