synix/pkgs/arxiv-mcp-server/default.nix
sid bb811f4f16
All checks were successful
Build tests / build-hosts (pull_request) Successful in 3m18s
Flake check / flake-check (pull_request) Successful in 3m58s
update flake. update some package versions
2026-05-04 17:16:15 +02:00

66 lines
1.1 KiB
Nix

{
lib,
python3,
fetchPypi,
}:
python3.pkgs.buildPythonApplication rec {
pname = "arxiv-mcp-server";
version = "0.4.12";
pyproject = true;
src = fetchPypi {
pname = "arxiv_mcp_server";
inherit version;
hash = "sha256-khY63SfUKgNjyACNESEQpY9q3uJSlLhuJBEaBKGmZy8=";
};
build-system = [
python3.pkgs.hatchling
];
dependencies = with python3.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 python3.pkgs; {
test = [
aioresponses
pytest
pytest-asyncio
pytest-cov
pytest-mock
];
};
pythonRemoveDeps = [
"black"
];
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";
};
}