mirror of
https://github.com/gbtb/nix-stable-diffusion.git
synced 2024-09-11 11:16:15 +03:00
Packages: new and update dependencies for InvokeAI 2.3.5
New: peft fastapi-events fastapi-socketio Update: compel (0.1.7 -> 1.1.5) diffusers (0.13.1 -> 0.16.1) safetensors (0.2.8 -> 0.3.1)
This commit is contained in:
parent
0a10d93c6b
commit
91b79ab0ba
@ -167,6 +167,9 @@
|
||||
"xformers"
|
||||
"pyre-extensions"
|
||||
# "triton" TODO: nixpkgs is missing required llvm parts - mlir. https://github.com/NixOS/nixpkgs/pull/163878
|
||||
"peft"
|
||||
"fastapi-events"
|
||||
"fastapi-socketio"
|
||||
];
|
||||
in
|
||||
{
|
||||
|
@ -6,14 +6,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "compel";
|
||||
version = "0.1.7";
|
||||
version = "1.1.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
owner = "damian0815";
|
||||
repo = pname;
|
||||
rev = "085d657356714fbc972f12273ec7803242d602a0";
|
||||
sha256 = "sha256-v6tkyOH0cBQWPPmi9AY9nvYwaT8QxNpJneB/YWSdlYc=";
|
||||
sha256 = "932a4448553983db33f4893516239ed5001b384cc211e32841e80b1f94dcd0f6";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyparsing torch transformers diffusers ];
|
||||
|
@ -7,11 +7,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "diffusers";
|
||||
version = "0.13.1";
|
||||
version = "0.16.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0k4f9zya92jv4msdm66jaab29avxd6ba9c7aqc2mp7sdycg7mdi9";
|
||||
sha256 = "4cd7400382c86d85e08425550de1b1a81d4ed03623fbd4bcd8377864d9c46efe";
|
||||
};
|
||||
|
||||
propagatedBuildInputs =
|
||||
|
25
packages/fastapi-events/default.nix
Normal file
25
packages/fastapi-events/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, starlette
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastapi-events";
|
||||
version = "0.6.0";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "2380cdc3e30dc898d6b721d623c575c6f5b05ee35a3ee05adf0b90b12b9ed1f9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
starlette
|
||||
];
|
||||
|
||||
# TODO FIXME
|
||||
doCheck = false;
|
||||
}
|
24
packages/fastapi-socketio/default.nix
Normal file
24
packages/fastapi-socketio/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fastapi
|
||||
, python-socketio
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastapi-socketio";
|
||||
version = "0.0.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8c73aa94fe1bf1c9964ff89233a6ba52eeeec3ac8b9de0024d9d82b11e46bde5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
fastapi
|
||||
python-socketio
|
||||
];
|
||||
|
||||
# TODO FIXME
|
||||
doCheck = false;
|
||||
}
|
30
packages/peft/default.nix
Normal file
30
packages/peft/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ buildPythonPackage, fetchPypi, lib
|
||||
, numpy
|
||||
, packaging
|
||||
, psutil
|
||||
, pyyaml
|
||||
, torch
|
||||
, transformers
|
||||
, accelerate
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "peft";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "bbdeee4de3653ee43cb6bbe7505816e6e9b4cf8275471be1707d9c253dfe8e0b";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
packaging
|
||||
psutil
|
||||
pyyaml
|
||||
torch
|
||||
transformers
|
||||
accelerate
|
||||
];
|
||||
format = "pyproject";
|
||||
doCheck = false;
|
||||
}
|
@ -6,11 +6,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "safetensors";
|
||||
version = "0.2.8";
|
||||
version = "0.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-JyCyCmo4x5ncp5vXbK7qwvffWFqdT31Z+n4o7/nMsn8=";
|
||||
sha256 = "571da56ff8d0bec8ae54923b621cda98d36dcef10feb36fd492c4d0c2cd0e869";
|
||||
};
|
||||
|
||||
pythonRemoveDeps = [ "setuptools-rust" ];
|
||||
@ -24,7 +24,7 @@ buildPythonPackage rec {
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit src sourceRoot;
|
||||
name = sourceRoot;
|
||||
hash = "sha256-R38eAck76q13L98GZTXOHliOcqiIih4xAERbdIzy0rY=";
|
||||
hash = "sha256-IsePAiBsA/YjO1rhae49+4q67WdN5ieBMmjpzxRxxNE=";
|
||||
patches = [ ./cargo-lock.patch ];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user