Files
mcp-servers/packages/zotero-mcp/package.nix
T
hermes-agent fcd3f6d0f0
NixOS Configuration CI / Nix Flake Check (pull_request) Successful in 25s
Bump applemusic, zotero, nextcloud MCP servers to latest
- applemusic-mcp: 0.15.1 -> 0.18.3 (adds keyring dep)
- zotero-mcp: 0.5.0 -> 0.9.1 (pyzotero 1.13.5, vendored pdf-inspector,
  updated dep set per pyproject)
- nextcloud-mcp-server: 0.121.3 -> 0.173.0 (adds anyio, uvicorn,
  cryptography, lxml, botocore, numpy, packaging, pypdfium2; updated
  postPatch for new uv_build/icalendar constraints)

All hashes computed via nix build on wilkes; nix flake check passes.
2026-08-13 16:28:47 +00:00

121 lines
2.8 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
fetchPypi,
fetchurl,
}:
let
# Internal dependency: pyzotero (not in nixpkgs)
pyzotero = python3Packages.buildPythonPackage rec {
pname = "pyzotero";
version = "1.13.5";
format = "wheel";
src = fetchPypi {
inherit pname version;
format = "wheel";
dist = "py3";
python = "py3";
hash = "sha256-KoHXv+ix6kRzvLUPOPBeAeAJaO/3bBxHi1PwUa5rDcg=";
};
propagatedBuildInputs = with python3Packages; [
feedparser
bibtexparser
httpx
whenever
];
doCheck = false;
pythonImportsCheck = [ "pyzotero" ];
meta = with lib; {
description = "Python wrapper for the Zotero API";
homepage = "https://github.com/urschrei/pyzotero";
license = licenses.blueOak100;
};
};
# pdf-inspector: Rust with prebuilt abi3 wheels, not in nixpkgs.
# Pinned exactly (pre-1.0); no Python dependencies of its own.
pdf-inspector = python3Packages.buildPythonPackage rec {
pname = "pdf-inspector";
version = "0.2.6";
format = "wheel";
src = fetchurl {
url = "https://files.pythonhosted.org/packages/59/af/be72ab2bd310b6532e4311cf06175eb722802ccea29dbd9281f66c645bd8/pdf_inspector-0.2.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl";
hash = "sha256-33bdEAUEtwXOku8sZo8VLwUnfZQqvZSn0/JSy1RI1W0=";
};
doCheck = false;
pythonImportsCheck = [ "pdf_inspector" ];
meta = with lib; {
description = "PDF text extraction (Rust, abi3 wheels)";
homepage = "https://github.com/54yyyu/pdf-inspector";
license = licenses.mit;
};
};
in
python3Packages.buildPythonApplication rec {
pname = "zotero-mcp";
version = "0.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "54yyyu";
repo = "zotero-mcp";
rev = "v${version}";
hash = "sha256-1A4aKGLFUmY+abLKhxmnSd3KaJtC8onda4/MkjrybIg=";
};
build-system = with python3Packages; [
hatchling
];
# Core dependencies (from pyproject.toml v0.9.1)
dependencies = with python3Packages; [
pyzotero
python-dotenv
pdf-inspector
markdownify
pydantic
requests
fastmcp
httpx
unidecode
bibtexparser
];
# Optional extras (semantic search, PDF, scite)
optional-dependencies = with python3Packages; {
semantic = [
chromadb
sentence-transformers
openai
google-genai
tiktoken
];
pdf = [
pymupdf
ebooklib
];
scite = [
requests
];
};
pythonImportsCheck = [ "zotero_mcp" ];
meta = with lib; {
description = "MCP server connecting Zotero with AI assistants for research library access";
homepage = "https://github.com/54yyyu/zotero-mcp";
license = licenses.mit;
mainProgram = "zotero-mcp";
platforms = platforms.all;
};
}