synix/pkgs/arxiv-mcp-server/default.nix
sid ecf5132cbb
Some checks failed
Build tests / build-hosts (pull_request) Failing after 3s
Flake check / flake-check (pull_request) Failing after 13s
enforce new flake schema. formatting.
2026-05-31 18:50:41 +02:00

70 lines
1.2 KiB
Nix

{
lib,
python312,
fetchPypi,
}:
let
python = python312;
in
python.pkgs.buildPythonApplication rec {
pname = "arxiv-mcp-server";
version = "0.5.0";
pyproject = true;
src = fetchPypi {
pname = "arxiv_mcp_server";
inherit version;
hash = "sha256-vxrKyq+uOgVYtWrvikcIidLra6n0GFlFvfKztrc7GH8=";
};
build-system = [
python.pkgs.hatchling
];
dependencies = with python.pkgs; [
aiofiles
aiohttp
anyio
arxiv
httpx
mcp
pydantic
pydantic-settings
# pymupdf-layout # FIXME: write package for 0.3.2
pymupdf4llm
python-dateutil
python-dotenv
sse-starlette
uvicorn
];
optional-dependencies = with python.pkgs; {
test = [
aioresponses
pytest
pytest-asyncio
pytest-cov
pytest-mock
];
};
pythonRemoveDeps = [
"black"
"mcp"
];
pythonImportsCheck = [
"arxiv_mcp_server"
];
meta = {
description = "A flexible arXiv search and analysis service with MCP protocol support";
homepage = "https://pypi.org/project/arxiv-mcp-server";
license = with lib.licenses; [
asl20
mit
];
mainProgram = "arxiv-mcp-server";
};
}