83 lines
1.2 KiB
Nix
Executable File
83 lines
1.2 KiB
Nix
Executable File
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
...
|
|
}:
|
|
|
|
python3Packages.buildPythonPackage rec {
|
|
pname = "comfyui";
|
|
version = "0.12.0";
|
|
pyproject = true;
|
|
|
|
disabled = python3Packages.pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Comfy-Org";
|
|
repo = "ComfyUI";
|
|
tag = "v${version}";
|
|
hash = "sha256-fCTMxtFkAy4TfUgtj42EKmvw/hr/L9Y3OKfHXpnSkPw=";
|
|
};
|
|
|
|
# pythonRelaxDeps = [
|
|
# "aiomqtt"
|
|
# "pycryptodome"
|
|
# ];
|
|
|
|
build-system = with python3Packages; [
|
|
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
aiohttp
|
|
torch
|
|
torchaudio
|
|
torchvision
|
|
numpy
|
|
requests
|
|
|
|
torchsde
|
|
einops
|
|
transformers
|
|
tokenizers
|
|
sentencepiece
|
|
safetensors
|
|
aiohttp
|
|
yarl
|
|
pyyaml
|
|
pillow
|
|
scipy
|
|
tqdm
|
|
psutil
|
|
alembic
|
|
sqlalchemy
|
|
av
|
|
requests
|
|
|
|
#non essential dependencies:
|
|
kornia
|
|
# spandrel
|
|
pydantic
|
|
pydantic-settings
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
|
|
];
|
|
|
|
setupPhase = null;
|
|
|
|
# comfyui-frontend-package==1.37.11
|
|
# comfyui-workflow-templates==0.8.31
|
|
# comfyui-embedded-docs==0.4.0
|
|
# comfy-kitchen
|
|
# comfy-aimdo
|
|
|
|
# pythonImportsCheck = [ "roborock" ];
|
|
|
|
meta = with lib; {
|
|
maintainers = [ ];
|
|
mainProgram = "comfyui";
|
|
};
|
|
}
|