1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
setuptools-scm,
accelerate,
diffusers,
fastapi,
ftfy,
pydantic,
scipy,
torch,
transformers,
typer,
uvicorn,
nix-update-script,
}:
buildPythonPackage rec {
pname = "peacasso";
version = "0.0.19a0";
pyproject = true;
# No releases or tags are available in https://github.com/victordibia/peacasso
src = fetchPypi {
inherit pname version;
hash = "sha256-qBoG9FAJs0oZrQ0jShtPZfZPmyUZD30MGXDUfMl5bQk=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
accelerate
diffusers
fastapi
ftfy
pydantic
scipy
torch
transformers
typer
uvicorn
];
pythonRelaxDeps = [ "diffusers" ];
pythonImportsCheck = [
"peacasso"
];
# No tests
doCheck = false;
passthru.updateScript = nix-update-script { };
meta = {
description = "UI tool to help you generate art (and experiment) with multimodal (text, image) AI models (stable diffusion)";
homepage = "https://github.com/victordibia/peacasso";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ moraxyc ];
mainProgram = "peacasso";
};
}
|