Skip to content

refactor: list torchaudio as a custom-node dependency - #122

Merged
jamesbrink merged 2 commits into
mainfrom
refactor/torchaudio-node-dep
Nov 12, 2026
Merged

jamesbrink merged 2 commits into
mainfrom
refactor/torchaudio-node-dep

Conversation

@jamesbrink

Copy link
Copy Markdown
Member

Closes #121.

Upstream ComfyUI dropped torchaudio in Comfy-Org/ComfyUI#16457; v0.44.0 has no references to it. It still ships here only because two bundled custom nodes import it: ComfyUI-MMAudio and ComfyUI-WanVideoWrapper.

Change

  • nix/packages.nix: torchaudio moves out of the core torch block (optionals) and into the custom-node dependency section (extras), with a comment naming the two nodes and the upstream removal.
  • nix/custom-nodes.nix: torchaudio is added to both nodes' passthru.pythonDeps.
  • CHANGELOG entry.

Not a closure change

The Python environment is fixed at build time and always includes the bundled nodes. bundledCustomNodes = false only skips the runtime symlinks. So torchaudio is still shipped, and the package contents are the same. This PR records why it is there, so it can be dropped when those nodes stop needing it. Separately, passthru.pythonDeps isn't consumed anywhere today; node deps are listed by hand in packages.nix. I updated both places so they stay consistent.

Testing

  • nix build .#default and the nixfmt check pass.
  • torchaudio is still in the closure of default, cuda, rocm72 and xpu. macOS couldn't be checked; see below.

Related, not fixed here

.#packages.aarch64-darwin.default fails to evaluate on main since #119's nixpkgs bump: Refusing to evaluate package 'python3.12-filterpy-2.0.0' … because it has problems. PR CI is Linux-only, so it didn't catch this. It will be tracked and fixed separately.

@jamesbrink
jamesbrink merged commit 70af220 into main Nov 12, 2026
13 checks passed
@jamesbrink
jamesbrink deleted the refactor/torchaudio-node-dep branch November 12, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reconsider shipping torchaudio now that upstream ComfyUI dropped it

1 participant