NixOS Configuration CI / Nix Flake Check (push) Failing after 17s
Use the hermes-agent/pdf-mcp fork (commit 356e476) which adds a bbox crop parameter to get_page_image so it can render just a figure region as a small PNG.
40 lines
869 B
Nix
40 lines
869 B
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "pdf-mcp";
|
|
version = "0.1.1-unstable-2026-07-30";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hermes-agent";
|
|
repo = "pdf-mcp";
|
|
rev = "356e476d1dd0d2d9eb866df7c6f82a21018351c8";
|
|
hash = "sha256-whfXjMQIUt94VEeo6Fdvdr96WV3HNNNVuL1gtkt4g7M=";
|
|
};
|
|
|
|
pyproject = true;
|
|
|
|
build-system = with python3Packages; [ hatchling ];
|
|
|
|
dependencies = with python3Packages; [
|
|
mcp
|
|
pymupdf
|
|
pymupdf4llm
|
|
];
|
|
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "pdf_mcp" ];
|
|
|
|
meta = with lib; {
|
|
description = "MCP server for reading, rendering, and searching PDF files (PyMuPDF)";
|
|
homepage = "https://gitea.bueso.eu/hermes-agent/pdf-mcp";
|
|
license = licenses.mit;
|
|
mainProgram = "pdf-mcp";
|
|
platforms = platforms.all;
|
|
maintainers = [ ];
|
|
};
|
|
}
|