diff --git a/package.nix b/package.nix index fe3f257..e5778fe 100644 --- a/package.nix +++ b/package.nix @@ -50,6 +50,19 @@ let }; patches = [ ]; }); + pillow-heif = prev.pillow-heif.overridePythonAttrs (_old: rec { + # hermes-agent >=0.21.3 requires pillow-heif>=1.4.0,<2 (HEIF/HEIC/AVIF + # decode for the vision tools); nixpkgs has 1.2.0. 1.4.0 is the newest + # release that still accepts nixpkgs' libheif (1.20.2) — 1.5.0 needs + # libheif >=1.23.1. Upstream test suite passes against system libheif. + version = "1.4.0"; + src = fetchFromGitHub { + owner = "bigcat88"; + repo = "pillow_heif"; + tag = "v${version}"; + hash = "sha256-EaislmA4v2qKCDQ87I85Pn8IlS4VJWyNXkITipKSBC8="; + }; + }); firecrawl-py = prev.firecrawl-py.overridePythonAttrs (_old: rec { # hermes-agent >=0.4.0 requires firecrawl-py >=4.16.0; nixpkgs builds from GitHub version = "4.16.0"; @@ -252,6 +265,8 @@ pythonPackages.buildPythonApplication { pyjwt cryptography pillow + # Vision — HEIF/HEIC/AVIF decode for iPhone photos (upstream >=0.21.3) + pillow-heif # Messaging python-telegram-bot discordpy