-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapps.nix
522 lines (455 loc) · 10.3 KB
/
apps.nix
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
final: prev:
let
inherit (prev) buildPythonPackage fetchPypi;
inherit (prev.lib) licenses maintainers;
inherit (prev.pkgs) fetchFromGitHub;
# wip for now
_iopaint-base =
let
name = "iopaint";
version = "1.2.2";
in
buildPythonPackage {
inherit version;
pname = name;
format = "setuptools";
src = fetchFromGitHub {
owner = "Sanster";
repo = name;
rev = "refs/tags/iopaint-${version}";
hash = "sha256-jY2NZVhcFH+YXcbasTXEyhswOKaLx3lqAzYQlyYhAgk=";
};
propagatedBuildInputs = with prev; [
accelerate
controlnet-aux
diffusers
einops
flask
flask-cors
flask-socketio
flaskwebgui
gradio
jinja2
loguru
markupsafe
omegaconf
opencv4
peft
piexif
pydantic
pytest
rich
safetensors
scikit-image
simple-websocket
torch
torchvision
tqdm
transformers
typer
typer-config
yacs
];
postPatch = ''
sed -i -E \
-e '/controlnet-aux/d' \
./requirements.txt
'';
pythonRelaxDeps = [
"Jinja2"
"flask"
"flaskwebgui"
"markupsafe"
"transformers"
];
nativeBuildInputs = with prev; [
pythonRelaxDepsHook
];
pythonImportsCheck = [ "iopaint" ];
doCheck = false;
meta = {
description = "Image inpainting tool powered by SOTA AI Models";
homepage = "https://github.com/Sanster/iopaint";
mainProgram = "iopaint";
license = licenses.asl20;
maintainers = with maintainers; [ jpetrucciani ];
};
};
_io-paint = buildPythonPackage rec {
pname = "io-paint";
version = "1.2.2";
pyproject = true;
src = fetchPypi {
pname = "IOPaint";
inherit version;
hash = "sha256-653nYW5qbfW/taf/W6vB12fl0YaEoieRWjE/kIuN/t4=";
};
postPatch = "touch ./requirements.txt";
nativeBuildInputs = with final; [
setuptools
wheel
];
propagatedBuildInputs = with final; [
accelerate
# controlnet-aux
diffusers
easydict
einops
fastapi
gradio
loguru
omegaconf
opencv4
peft
piexif
pillow
pydantic
python-multipart
python-socketio
rich
safetensors
torch
torchvision
transformers
typer
typer-config
uvicorn
yacs
];
pythonImportsCheck = [ "iopaint" ];
meta = {
description = "Image inpainting, outpainting tool powered by SOTA AI Model";
homepage = "https://github.com/Sanster/iopaint";
license = licenses.asl20;
mainProgram = "iopaint";
maintainers = with maintainers; [ jpetrucciani ];
};
};
in
{
io-paint = _io-paint;
io-paint-cuda = _io-paint.override { torch = final.torchWithCuda; };
chainforge = buildPythonPackage rec {
pname = "chainforge";
version = "0.2.5.3";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-zOSflYxezkqhGDXrw3ttbNqx3zU0rUYNWGLzSJizurc=";
};
postPatch = ''
sed -i -E '/urllib3/d' ./setup.py
'';
propagatedBuildInputs = with prev; [
(anthropic.overridePythonAttrs (_: { doCheck = false; }))
asgiref
dalaipy
flask
flask-cors
google-generativeai
mistune
openai
requests
urllib3
];
pythonRelaxDeps = [
"urllib3"
];
nativeBuildInputs = with prev; [
pythonRelaxDepsHook
];
pythonImportsCheck = [ "chainforge" ];
meta = {
description = "A Visual Programming Environment for Prompt Engineering";
homepage = "https://github.com/ianarawjo/ChainForge";
license = licenses.mit;
mainProgram = "chainforge";
maintainers = with maintainers; [ jpetrucciani ];
};
};
bark = buildPythonPackage rec {
pname = "bark";
version = "unstable-2023-08-31";
pyproject = true;
src = fetchFromGitHub {
owner = "suno-ai";
repo = pname;
rev = "cb89688307c28cbd2d8bbfc78e534b9812673a26";
hash = "sha256-hpM+m4cMymFsy8GJQQ29LoLoZx3i6PxIfASU49VSuk8=";
};
nativeBuildInputs = with prev; [
setuptools
];
propagatedBuildInputs = with prev; [
boto3
encodec
funcy
huggingface-hub
numpy
scipy
tokenizers
torch-bin
tqdm
transformers
];
passthru.optional-dependencies = with prev; {
dev = [
bandit
black
codecov
flake8
hypothesis
isort
jupyter
mypy
nbconvert
nbformat
pydocstyle
pylint
pytest
pytest-cov
];
};
pythonImportsCheck = [ "bark" ];
meta = {
description = "Text-Prompted Generative Audio Model";
homepage = "https://github.com/suno-ai/bark";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
poppler-utils = buildPythonPackage rec {
pname = "poppler-utils";
version = "0.1.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-6XqS3P3leyGpDDBwaU5Y+O6hVVFa6OYkJmoFLQd2o0k=";
};
nativeBuildInputs = with final; [
setuptools
wheel
];
propagatedBuildInputs = with final; [
click
];
passthru.optional-dependencies = with final; {
dev = [
click
sphinx
];
};
pythonImportsCheck = [ "poppler" ];
meta = {
description = "Precompiled command-line utilities (based on Poppler) for manipulating PDF files and converting them to other formats";
homepage = "https://pypi.org/project/poppler-utils/";
license = licenses.gpl2Only;
maintainers = with maintainers; [ jpetrucciani ];
};
};
flupy = buildPythonPackage rec {
pname = "flupy";
version = "1.2.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-Ekh6AI6XRM010PbqPPoG9LKyfLE4v1fQeI9cJuV6/mk=";
};
nativeBuildInputs = with final; [
setuptools
wheel
];
propagatedBuildInputs = with final; [
typing-extensions
];
pythonImportsCheck = [ "flupy" ];
meta = {
description = "Method chaining built on generators";
homepage = "https://pypi.org/project/flupy/";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
vecs = buildPythonPackage rec {
pname = "vecs";
version = "0.4.4";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-PgNJHAWkdISjOzLW7B2fSEERa6cwftmZRRBnjwmDFv0=";
};
nativeBuildInputs = with final; [
setuptools
wheel
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"pgvector"
];
propagatedBuildInputs = with final; [
deprecated
flupy
pgvector
psycopg2
sqlalchemy
];
preBuild = ''
substituteInPlace ./setup.py --replace 'psycopg2-binary' 'psycopg2'
'';
pythonImportsCheck = [ "vecs" ];
meta = {
description = "Pgvector client";
homepage = "https://pypi.org/project/vecs/";
license = with licenses; [ asl20 mit ];
maintainers = with maintainers; [ jpetrucciani ];
};
};
r2r = buildPythonPackage rec {
pname = "r2r";
version = "0.2.85";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-xXEWi/lUlKuhfacGL01Tin34sy68DWpccGZflzeCf4U=";
};
nativeBuildInputs = with final; [
poetry-core
setuptools
wheel
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"alembic"
"fastapi"
"fire"
"fsspec"
"gunicorn"
"ollama"
"posthog"
"pydantic"
"uvicorn"
];
propagatedBuildInputs = with final; [
aiosqlite
alembic
asyncpg
bcrypt
beautifulsoup4
email-validator
fastapi
fire
fsspec
gunicorn
litellm
markdown
neo4j
nest-asyncio
ollama
openai
openpyxl
passlib
poppler-utils
posthog
psutil
pydantic
pyjwt
pypdf
python-docx
python-multipart
python-pptx
pyyaml
redis
requests
sqlalchemy
toml
types-requests
uvicorn
vecs
];
passthru.optional-dependencies = with final; {
all = [
moviepy
opencv-python
];
ingest-movies = [
moviepy
opencv-python
];
};
pythonImportsCheck = [ "r2r" ];
meta = {
description = "SciPhi R2R";
homepage = "https://pypi.org/project/r2r/";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
infinity-emb = buildPythonPackage rec {
pname = "infinity-emb";
version = "0.0.75";
pyproject = true;
src = fetchPypi {
pname = "infinity_emb";
inherit version;
hash = "sha256-zYpqoXtXZyukilaZz2XIrVYfZfJI44r9OD3DX4z0cN4=";
};
build-system = with final; [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"numpy"
];
dependencies = with final; [
ctranslate2
diskcache
einops
fastapi
hf-transfer
httptools
huggingface-hub
numpy
optimum
orjson
pillow
prometheus-fastapi-instrumentator
pydantic
rich
sentence-transformers
timm
torch
typer
uvicorn
xformers
];
optional-dependencies = with final; {
onnxruntime-gpu = [
onnxruntime-gpu
];
optimum = [
optimum
];
tensorrt = [
tensorrt
];
torch = [
sentence-transformers
torch
];
vision = [
pillow
timm
];
};
pythonImportsCheck = [
"infinity_emb"
];
meta = {
description = "Infinity is a high-throughput, low-latency REST API for serving text-embeddings, reranking models and clip";
homepage = "https://pypi.org/project/infinity-emb/";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
mainProgram = "infinity_emb";
};
};
}