From 24a7df544e36b3f89a5e46a3966da30c6585e9a2 Mon Sep 17 00:00:00 2001 From: hermes Date: Fri, 4 Sep 2026 10:38:19 +0000 Subject: [PATCH] fix: add 0.21.0 deps (firecrawl-anydoc, snowballstemmer) and --version check Upstream 0.21.0 added firecrawl-anydoc==0.2.4 (document-to-Markdown converter) as a direct core dependency. It ships only Rust/maturin artifacts, so package.nix consumes the prebuilt cp310-abi3 x86_64-linux wheel (zero runtime deps per PyPI), mirroring the existing nemo-relay wheel pattern. Re-adds snowballstemmer==3.1.1 (tool_search BM25 stemming, required since 0.20.6) which the candidate regeneration from main dropped, and restores the 'hermes --version' form in the package-contents check (the 'hermes version' subcommand was removed upstream in 0.20.6). Files: package.nix (add firecrawl-anydoc builder + both deps), checks.nix (--version). --- checks.nix | 2 +- package.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/checks.nix b/checks.nix index c4577e9..3044d3e 100644 --- a/checks.nix +++ b/checks.nix @@ -12,7 +12,7 @@ echo "PASS: All binaries present" echo "=== Checking version ===" - ${hermes-agent}/bin/hermes version 2>&1 | grep -q "Hermes Agent" || (echo "FAIL: version check"; exit 1) + ${hermes-agent}/bin/hermes --version 2>&1 | grep -q "Hermes Agent" || (echo "FAIL: version check"; exit 1) echo "PASS: Version check" echo "=== Checking key Python modules ===" diff --git a/package.nix b/package.nix index f7b346e..a945dac 100644 --- a/package.nix +++ b/package.nix @@ -156,6 +156,21 @@ let pythonImportsCheck = [ "nemo_relay" ]; }; + firecrawl-anydoc = pythonPackages.buildPythonPackage rec { + pname = "firecrawl-anydoc"; + version = "0.2.4"; + # Upstream ships only Rust/maturin artifacts; the prebuilt abi3 wheel has + # no base runtime dependencies (PyPI requires_dist is empty). x86_64-linux + # wheel only — matches the system the flake's checks target. + format = "wheel"; + src = fetchurl { + url = "https://files.pythonhosted.org/packages/fc/16/feeca9705bfdb237f1cb69ede0b373b144c0d51df4297e595a74b815557e/firecrawl_anydoc-0.2.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; + hash = "sha256-DlrtAb9tTlxYjTNjiIKT8s7rn+sARJoy4LqZN5fPC9M="; + }; + doCheck = false; + pythonImportsCheck = [ "anydoc" ]; + }; + agent-client-protocol = pythonPackages.buildPythonPackage rec { pname = "agent-client-protocol"; version = "0.8.1"; @@ -223,6 +238,10 @@ pythonPackages.buildPythonApplication { firecrawl-py fal-client parallel-web + # Document conversion (upstream >=0.21.0, firecrawl-anydoc==0.2.4) + firecrawl-anydoc + # tool_search BM25 stemming (upstream >=0.20.6, snowballstemmer==3.1.1) + snowballstemmer # TTS edge-tts faster-whisper