mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 02:40:50 +00:00
These other packages are tightly coupled to the comfyui version, and so should always be updated together. As such, also exempt those packages from auto-update, since they will be updated from here instead. Originally wanted to put the comfyui-workflow-templates fan-out in its own `updateScript`, but the problem with that is we cannot pass an explicit version to it, since `maintainers/scripts/update.nix` does not support it, and so `nix-update --use-update-script` cannot (since its `--update-script-args` go to `maintainers/scripts/update.py`, not to the underlying `updateScript`). This is fine anyway since comfyui-workflow-templates has auto-update disabled anyway. So just shove it all in `comfyui.passthru.updateScript`. Assisted-by: Pi (GLM-5.3-Flash)
36 lines
834 B
Nix
36 lines
834 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
comfyui,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "comfyui-workflow-templates-media-api";
|
|
version = "0.3.84";
|
|
pyproject = true;
|
|
|
|
# nixpkgs-update: no auto update
|
|
# updated via comfyui
|
|
src = fetchPypi {
|
|
pname = "comfyui_workflow_templates_media_api";
|
|
inherit (finalAttrs) version;
|
|
hash = "sha256-a9XEluNo5eQN2H3+JfBm4k1X82AoiLo9+AATqI0GAlk=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
# Package only ships static workflow JSON assets; no tests.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "comfyui_workflow_templates_media_api" ];
|
|
|
|
meta = {
|
|
description = "API workflow templates for ComfyUI";
|
|
homepage = "https://github.com/Comfy-Org/workflow_templates";
|
|
license = lib.licenses.mit;
|
|
inherit (comfyui.meta) maintainers;
|
|
};
|
|
})
|