summaryrefslogtreecommitdiff
path: root/Omni/Bild/Deps
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2025-01-02 16:20:21 -0500
committerBen Sima <ben@bsima.me>2025-01-02 16:20:21 -0500
commit0fb4ae72c5754761fd7666e4274f4beef0484c32 (patch)
treed8820c808f31f287c3fcc266c02e3a26ddcdfbc3 /Omni/Bild/Deps
parent3790d334c994db7a0e1eac9c130c2b1316c78c35 (diff)
Switch to alejandra for nix formatting
I mostly wanted a formatter that would format `inherit` blocks vertically, because otherwise they are super hard to read when diffing or even just editing. Both alejandra and the new nixos/nixfmt format verically like this, but alejandra has slightly better format (I guess) and for some reason nixfmt did not respect my `GLOBIGNORE` setting when doing `nixfmt **/*.nix` so it was trying to format stuff in `_/nix`, and failed. So anyway I went with alejandra. - https://github.com/kamadorueda/alejandra - https://discourse.nixos.org/t/enforcing-nix-formatting-in-nixpkgs/49506
Diffstat (limited to 'Omni/Bild/Deps')
-rw-r--r--Omni/Bild/Deps/C.nix2
-rw-r--r--Omni/Bild/Deps/Haskell.nix1
-rw-r--r--Omni/Bild/Deps/accelerate.nix13
-rw-r--r--Omni/Bild/Deps/bitsandbytes.nix131
-rw-r--r--Omni/Bild/Deps/guile-opengl.nix60
-rw-r--r--Omni/Bild/Deps/inspekt3d.nix23
-rw-r--r--Omni/Bild/Deps/interegular.nix13
-rw-r--r--Omni/Bild/Deps/lion-pytorch.nix15
-rw-r--r--Omni/Bild/Deps/llm-ollama.nix27
-rw-r--r--Omni/Bild/Deps/llm-sentence-transformers.nix27
-rw-r--r--Omni/Bild/Deps/ludic.nix34
-rw-r--r--Omni/Bild/Deps/nostr-rs-relay.nix12
-rw-r--r--Omni/Bild/Deps/outlines.nix23
-rw-r--r--Omni/Bild/Deps/perscache.nix17
14 files changed, 246 insertions, 152 deletions
diff --git a/Omni/Bild/Deps/C.nix b/Omni/Bild/Deps/C.nix
index 3f670cd..833fc40 100644
--- a/Omni/Bild/Deps/C.nix
+++ b/Omni/Bild/Deps/C.nix
@@ -1 +1 @@
-[ "libsodium" ]
+["libsodium"]
diff --git a/Omni/Bild/Deps/Haskell.nix b/Omni/Bild/Deps/Haskell.nix
index 04f3a74..5d6abbb 100644
--- a/Omni/Bild/Deps/Haskell.nix
+++ b/Omni/Bild/Deps/Haskell.nix
@@ -1,6 +1,5 @@
# This is the global set of Haskell packages which gets deployed to Hoogle, and
# is available for selecting.
-
[
"MonadRandom"
"QuickCheck"
diff --git a/Omni/Bild/Deps/accelerate.nix b/Omni/Bild/Deps/accelerate.nix
index be1d2fd..55a8609 100644
--- a/Omni/Bild/Deps/accelerate.nix
+++ b/Omni/Bild/Deps/accelerate.nix
@@ -1,10 +1,16 @@
-{ fetchFromGitHub, buildPythonPackage, numpy, packaging, psutil, pyyaml, torch
+{
+ fetchFromGitHub,
+ buildPythonPackage,
+ numpy,
+ packaging,
+ psutil,
+ pyyaml,
+ torch,
}:
-
buildPythonPackage rec {
name = "accelerate";
version = "0.15.0";
- propagatedBuildInputs = [ numpy packaging psutil pyyaml torch ];
+ propagatedBuildInputs = [numpy packaging psutil pyyaml torch];
doCheck = false;
src = fetchFromGitHub {
owner = "huggingface";
@@ -13,4 +19,3 @@ buildPythonPackage rec {
sha256 = "sha256-agfbOaa+Nm10HZkd2Y7zR3R37n+vLNsxCyxZax6O3Lo=";
};
}
-
diff --git a/Omni/Bild/Deps/bitsandbytes.nix b/Omni/Bild/Deps/bitsandbytes.nix
index eb32aac..c336559 100644
--- a/Omni/Bild/Deps/bitsandbytes.nix
+++ b/Omni/Bild/Deps/bitsandbytes.nix
@@ -1,7 +1,17 @@
-{ lib, buildPythonPackage, fetchFromGitHub, python, pythonOlder, pytestCheckHook
-, setuptools, torch, einops, lion-pytorch, scipy, symlinkJoin }:
-
-let
+{
+ lib,
+ buildPythonPackage,
+ fetchFromGitHub,
+ python,
+ pythonOlder,
+ pytestCheckHook,
+ setuptools,
+ torch,
+ einops,
+ lion-pytorch,
+ scipy,
+ symlinkJoin,
+}: let
pname = "bitsandbytes";
version = "0.38.0";
@@ -24,63 +34,68 @@ let
[
cuda_cudart # cuda_runtime.h cuda_runtime_api.h
cuda_nvcc
- ] ++ cuda-common-redist;
+ ]
+ ++ cuda-common-redist;
};
cuda-redist = symlinkJoin {
name = "cuda-redist-${cudaVersion}";
paths = cuda-common-redist;
};
-
-in buildPythonPackage {
- inherit pname version;
- format = "pyproject";
-
- disabled = pythonOlder "3.7";
-
- src = fetchFromGitHub {
- owner = "TimDettmers";
- repo = pname;
- rev = "refs/tags/${version}";
- hash = "sha256-gGlbzTDvZNo4MhcYzLvWuB2ec7q+Qt5/LtTbJ0Rc+Kk=";
- };
-
- postPatch = ''
- substituteInPlace Makefile --replace "/usr/bin/g++" "g++" --replace "lib64" "lib"
- substituteInPlace bitsandbytes/cuda_setup/main.py \
- --replace "binary_path = package_dir / binary_name" \
- "binary_path = Path('$out/${python.sitePackages}/${pname}')/binary_name"
- '' + lib.optionalString torch.cudaSupport ''
- substituteInPlace bitsandbytes/cuda_setup/main.py \
- --replace "/usr/local/cuda/lib64" "${cuda-native-redist}/lib"
- '';
-
- CUDA_HOME = "${cuda-native-redist}";
-
- preBuild = if torch.cudaSupport then
- with torch.cudaPackages;
- let
- cudaVersion = lib.concatStrings
- (lib.splitVersion torch.cudaPackages.cudaMajorMinorVersion);
- in "make CUDA_VERSION=${cudaVersion} cuda${cudaMajorVersion}x"
- else
- "make CUDA_VERSION=CPU cpuonly";
-
- nativeBuildInputs = [ setuptools ]
- ++ lib.optionals torch.cudaSupport [ cuda-native-redist ];
- buildInputs = lib.optionals torch.cudaSupport [ cuda-redist ];
-
- propagatedBuildInputs = [ torch ];
-
- doCheck = false; # tests require CUDA and also GPU access
- nativeCheckInputs = [ pytestCheckHook einops lion-pytorch scipy ];
-
- pythonImportsCheck = [ "bitsandbytes" ];
-
- meta = with lib; {
- homepage = "https://github.com/TimDettmers/bitsandbytes";
- description = "8-bit CUDA functions for PyTorch";
- license = licenses.mit;
- maintainers = with maintainers; [ bcdarwin ];
- };
-}
+in
+ buildPythonPackage {
+ inherit pname version;
+ format = "pyproject";
+
+ disabled = pythonOlder "3.7";
+
+ src = fetchFromGitHub {
+ owner = "TimDettmers";
+ repo = pname;
+ rev = "refs/tags/${version}";
+ hash = "sha256-gGlbzTDvZNo4MhcYzLvWuB2ec7q+Qt5/LtTbJ0Rc+Kk=";
+ };
+
+ postPatch =
+ ''
+ substituteInPlace Makefile --replace "/usr/bin/g++" "g++" --replace "lib64" "lib"
+ substituteInPlace bitsandbytes/cuda_setup/main.py \
+ --replace "binary_path = package_dir / binary_name" \
+ "binary_path = Path('$out/${python.sitePackages}/${pname}')/binary_name"
+ ''
+ + lib.optionalString torch.cudaSupport ''
+ substituteInPlace bitsandbytes/cuda_setup/main.py \
+ --replace "/usr/local/cuda/lib64" "${cuda-native-redist}/lib"
+ '';
+
+ CUDA_HOME = "${cuda-native-redist}";
+
+ preBuild =
+ if torch.cudaSupport
+ then
+ with torch.cudaPackages; let
+ cudaVersion =
+ lib.concatStrings
+ (lib.splitVersion torch.cudaPackages.cudaMajorMinorVersion);
+ in "make CUDA_VERSION=${cudaVersion} cuda${cudaMajorVersion}x"
+ else "make CUDA_VERSION=CPU cpuonly";
+
+ nativeBuildInputs =
+ [setuptools]
+ ++ lib.optionals torch.cudaSupport [cuda-native-redist];
+ buildInputs = lib.optionals torch.cudaSupport [cuda-redist];
+
+ propagatedBuildInputs = [torch];
+
+ doCheck = false; # tests require CUDA and also GPU access
+ nativeCheckInputs = [pytestCheckHook einops lion-pytorch scipy];
+
+ pythonImportsCheck = ["bitsandbytes"];
+
+ meta = with lib; {
+ homepage = "https://github.com/TimDettmers/bitsandbytes";
+ description = "8-bit CUDA functions for PyTorch";
+ license = licenses.mit;
+ maintainers = with maintainers; [bcdarwin];
+ };
+ }
diff --git a/Omni/Bild/Deps/guile-opengl.nix b/Omni/Bild/Deps/guile-opengl.nix
index af01082..cb625e6 100644
--- a/Omni/Bild/Deps/guile-opengl.nix
+++ b/Omni/Bild/Deps/guile-opengl.nix
@@ -1,32 +1,40 @@
-{ stdenv, lib, fetchurl, pkg-config, guile, libGL, libGLU, freeglut }:
-
-let
+{
+ stdenv,
+ lib,
+ fetchurl,
+ pkg-config,
+ guile,
+ libGL,
+ libGLU,
+ freeglut,
+}: let
name = "guile-opengl-${version}";
version = "0.1.0";
-in stdenv.mkDerivation {
- inherit name;
+in
+ stdenv.mkDerivation {
+ inherit name;
- src = fetchurl {
- url = "mirror://gnu/guile-opengl/${name}.tar.gz";
- sha256 = "13qfx4xh8baryxqrv986l848ygd0piqwm6s2s90pxk9c0m9vklim";
- };
+ src = fetchurl {
+ url = "mirror://gnu/guile-opengl/${name}.tar.gz";
+ sha256 = "13qfx4xh8baryxqrv986l848ygd0piqwm6s2s90pxk9c0m9vklim";
+ };
- patchPhase = ''
- substituteInPlace glx/runtime.scm \
- --replace '(dynamic-link "libGL")' '(dynamic-link "${libGL}/lib/libGL.so")'
- substituteInPlace glu/runtime.scm \
- --replace '(dynamic-link "libGLU")' '(dynamic-link "${libGLU}/lib/libGLU.so")'
- substituteInPlace glut/runtime.scm \
- --replace '(dynamic-link "libglut")' '(dynamic-link "${freeglut}/lib/libglut.so")'
- '';
+ patchPhase = ''
+ substituteInPlace glx/runtime.scm \
+ --replace '(dynamic-link "libGL")' '(dynamic-link "${libGL}/lib/libGL.so")'
+ substituteInPlace glu/runtime.scm \
+ --replace '(dynamic-link "libGLU")' '(dynamic-link "${libGLU}/lib/libGLU.so")'
+ substituteInPlace glut/runtime.scm \
+ --replace '(dynamic-link "libglut")' '(dynamic-link "${freeglut}/lib/libglut.so")'
+ '';
- nativeBuildInputs = [ pkg-config guile libGL libGLU freeglut ];
+ nativeBuildInputs = [pkg-config guile libGL libGLU freeglut];
- meta = with lib; {
- description = "Guile bindings for the OpenGL graphics API";
- homepage = "https://www.gnu.org/software/guile-opengl/";
- license = licenses.gpl3Plus;
- maintainers = with maintainers; [ vyp ];
- platforms = platforms.all;
- };
-}
+ meta = with lib; {
+ description = "Guile bindings for the OpenGL graphics API";
+ homepage = "https://www.gnu.org/software/guile-opengl/";
+ license = licenses.gpl3Plus;
+ maintainers = with maintainers; [vyp];
+ platforms = platforms.all;
+ };
+ }
diff --git a/Omni/Bild/Deps/inspekt3d.nix b/Omni/Bild/Deps/inspekt3d.nix
index 3146350..de3db4e 100644
--- a/Omni/Bild/Deps/inspekt3d.nix
+++ b/Omni/Bild/Deps/inspekt3d.nix
@@ -1,15 +1,24 @@
-{ stdenv, lib, autoreconfHook, pkg-config, guile, guile-opengl, mesa
-, glibcLocales, libfive, sources }:
-
+{
+ stdenv,
+ lib,
+ autoreconfHook,
+ pkg-config,
+ guile,
+ guile-opengl,
+ mesa,
+ glibcLocales,
+ libfive,
+ sources,
+}:
stdenv.mkDerivation {
name = "inspekt3d-unstable";
src = sources.inspekt3d;
version = "unstable-2018-10-17";
- nativeBuildInputs = [ pkg-config autoreconfHook ];
- buildInputs = [ guile glibcLocales mesa ];
- propagatedBuildInputs = [ guile-opengl libfive ];
+ nativeBuildInputs = [pkg-config autoreconfHook];
+ buildInputs = [guile glibcLocales mesa];
+ propagatedBuildInputs = [guile-opengl libfive];
preBuild = ''
substituteInPlace inspekt3d/library.scm \
@@ -24,7 +33,7 @@ stdenv.mkDerivation {
description = "Lightweight 3D viewer for Libfive written in Guile Scheme";
homepage = "https://sr.ht/~morgansmith/inspekt3d";
license = licenses.gpl3;
- maintainers = with maintainers; [ bsima ];
+ maintainers = with maintainers; [bsima];
platforms = platforms.all;
};
}
diff --git a/Omni/Bild/Deps/interegular.nix b/Omni/Bild/Deps/interegular.nix
index 24065d8..b46f4c8 100644
--- a/Omni/Bild/Deps/interegular.nix
+++ b/Omni/Bild/Deps/interegular.nix
@@ -1,5 +1,8 @@
-{ lib, sources, buildPythonPackage }:
-
+{
+ lib,
+ sources,
+ buildPythonPackage,
+}:
buildPythonPackage rec {
pname = "interegular";
version = sources.interegular.rev;
@@ -7,15 +10,15 @@ buildPythonPackage rec {
src = sources.interegular;
- propagatedBuildInputs = [ ];
+ propagatedBuildInputs = [];
doCheck = false; # no tests currently
- pythonImportsCheck = [ "interegular" ];
+ pythonImportsCheck = ["interegular"];
meta = with lib; {
description = "Allows to check regexes for overlaps.";
homepage = "https://github.com/MegaIng/interegular";
license = licenses.mit;
- maintainers = with maintainers; [ bsima ];
+ maintainers = with maintainers; [bsima];
};
}
diff --git a/Omni/Bild/Deps/lion-pytorch.nix b/Omni/Bild/Deps/lion-pytorch.nix
index 7b06e78..e8fcf3d 100644
--- a/Omni/Bild/Deps/lion-pytorch.nix
+++ b/Omni/Bild/Deps/lion-pytorch.nix
@@ -1,5 +1,10 @@
-{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, torch }:
-
+{
+ lib,
+ buildPythonPackage,
+ pythonOlder,
+ fetchFromGitHub,
+ torch,
+}:
buildPythonPackage rec {
pname = "lion-pytorch";
version = "0.1.2";
@@ -13,15 +18,15 @@ buildPythonPackage rec {
hash = "sha256-9hdpRJvCpv3PeC7f0IXpHt6i+e6LiT0QUl5jeDGelQE=";
};
- propagatedBuildInputs = [ torch ];
+ propagatedBuildInputs = [torch];
- pythonImportsCheck = [ "lion_pytorch" ];
+ pythonImportsCheck = ["lion_pytorch"];
doCheck = false; # no tests currently
meta = with lib; {
description = "Optimizer tuned by Google Brain using genetic algorithms";
homepage = "https://github.com/lucidrains/lion-pytorch";
license = licenses.mit;
- maintainers = with maintainers; [ bcdarwin ];
+ maintainers = with maintainers; [bcdarwin];
};
}
diff --git a/Omni/Bild/Deps/llm-ollama.nix b/Omni/Bild/Deps/llm-ollama.nix
index e2b6a66..15b26cc 100644
--- a/Omni/Bild/Deps/llm-ollama.nix
+++ b/Omni/Bild/Deps/llm-ollama.nix
@@ -1,5 +1,13 @@
-{ buildPythonPackage, fetchFromGitHub, lib, llm, ollama, pytestCheckHook
-, setuptools, pythonOlder, }:
+{
+ buildPythonPackage,
+ fetchFromGitHub,
+ lib,
+ llm,
+ ollama,
+ pytestCheckHook,
+ setuptools,
+ pythonOlder,
+}:
buildPythonPackage rec {
pname = "llm-ollama";
version = "0.3.0";
@@ -14,27 +22,26 @@ buildPythonPackage rec {
hash = "sha256-Ar0Ux8BNGY0i764CEk7+48J6jnndlRIIMPZ9tFpXiy4=";
};
- nativeBuildInputs = [ setuptools ];
+ nativeBuildInputs = [setuptools];
- buildInputs = [ llm ollama ];
+ buildInputs = [llm ollama];
- propagatedBuildInputs = [ ollama ];
+ propagatedBuildInputs = [ollama];
disabledTests = [
# wants to mkdir in the /homeless-shelter
"test_registered_models"
];
- nativeCheckInputs = [ pytestCheckHook ];
+ nativeCheckInputs = [pytestCheckHook];
- pythonImportsCheck = [ "llm_ollama" ];
+ pythonImportsCheck = ["llm_ollama"];
meta = with lib; {
homepage = "https://github.com/taketwo/llm-ollama";
- description =
- "LLM plugin providing access to local Ollama models usting HTTP API";
+ description = "LLM plugin providing access to local Ollama models usting HTTP API";
changelog = "https://github.com/taketwo/llm-ollama/releases/tag/${version}";
license = licenses.asl20;
- maintainers = with maintainers; [ bsima ];
+ maintainers = with maintainers; [bsima];
};
}
diff --git a/Omni/Bild/Deps/llm-sentence-transformers.nix b/Omni/Bild/Deps/llm-sentence-transformers.nix
index 4d63c83..f6766ee 100644
--- a/Omni/Bild/Deps/llm-sentence-transformers.nix
+++ b/Omni/Bild/Deps/llm-sentence-transformers.nix
@@ -1,5 +1,13 @@
-{ buildPythonPackage, fetchFromGitHub, lib, llm, sentence-transformers
-, pytestCheckHook, setuptools, pythonOlder, }:
+{
+ buildPythonPackage,
+ fetchFromGitHub,
+ lib,
+ llm,
+ sentence-transformers,
+ pytestCheckHook,
+ setuptools,
+ pythonOlder,
+}:
buildPythonPackage rec {
pname = "llm-sentence-transformers";
version = "0.2";
@@ -14,11 +22,11 @@ buildPythonPackage rec {
hash = "sha256-1NlKPWekdVLrNkIMWXLCRWn54RlAEuEDWMCDnQHNkBc=";
};
- nativeBuildInputs = [ setuptools ];
+ nativeBuildInputs = [setuptools];
- buildInputs = [ llm sentence-transformers ];
+ buildInputs = [llm sentence-transformers];
- propagatedBuildInputs = [ sentence-transformers ];
+ propagatedBuildInputs = [sentence-transformers];
# fails because of some pydantic warnings
doCheck = false;
@@ -27,16 +35,15 @@ buildPythonPackage rec {
"test_sentence_transformers"
];
- nativeCheckInputs = [ pytestCheckHook ];
+ nativeCheckInputs = [pytestCheckHook];
- pythonImportsCheck = [ "llm_sentence_transformers" ];
+ pythonImportsCheck = ["llm_sentence_transformers"];
meta = with lib; {
homepage = "https://github.com/taketwo/llm-sentence-transformers";
description = "LLM plugin for embeddings using sentence-transformers";
- changelog =
- "https://github.com/taketwo/llm-sentence-transformers/releases/tag/${version}";
+ changelog = "https://github.com/taketwo/llm-sentence-transformers/releases/tag/${version}";
license = licenses.asl20;
- maintainers = with maintainers; [ bsima ];
+ maintainers = with maintainers; [bsima];
};
}
diff --git a/Omni/Bild/Deps/ludic.nix b/Omni/Bild/Deps/ludic.nix
index dfac06c..58936c7 100644
--- a/Omni/Bild/Deps/ludic.nix
+++ b/Omni/Bild/Deps/ludic.nix
@@ -1,7 +1,19 @@
-{ buildPythonPackage, fetchFromGitHub, lib, setuptools, pytestCheckHook
-, python-multipart, starlette, typeguard, pygments, pytest, pytest-cov, httpx
-, hatchling, hatch-vcs }:
-
+{
+ buildPythonPackage,
+ fetchFromGitHub,
+ lib,
+ setuptools,
+ pytestCheckHook,
+ python-multipart,
+ starlette,
+ typeguard,
+ pygments,
+ pytest,
+ pytest-cov,
+ httpx,
+ hatchling,
+ hatch-vcs,
+}:
buildPythonPackage rec {
pname = "ludic";
version = "0.5.2";
@@ -14,23 +26,23 @@ buildPythonPackage rec {
hash = "sha256-Zcob2ljyeiCqnCobkDP4ihRTxvs5OtQ4y5+Itsgs/0o=";
};
- nativeBuildInputs = [ setuptools hatchling hatch-vcs ];
+ nativeBuildInputs = [setuptools hatchling hatch-vcs];
- propagatedBuildInputs = [ python-multipart starlette typeguard pygments ];
+ propagatedBuildInputs = [python-multipart starlette typeguard pygments];
- disabledTestPaths = [ "tests/contrib/test_django.py" ];
+ disabledTestPaths = ["tests/contrib/test_django.py"];
- nativeCheckInputs = [ pytestCheckHook ];
+ nativeCheckInputs = [pytestCheckHook];
- checkInputs = [ pytest pytest-cov httpx ];
+ checkInputs = [pytest pytest-cov httpx];
- pythonImportsCheck = [ "ludic" ];
+ pythonImportsCheck = ["ludic"];
meta = with lib; {
homepage = "https://github.com/getludic/ludic";
description = "Web Development in Pure Python with Type-Guided Components.";
changelog = "https://github.com/getludic/ludic/releases/tag/${version}";
license = licenses.mit;
- maintainers = with maintainers; [ bsima ];
+ maintainers = with maintainers; [bsima];
};
}
diff --git a/Omni/Bild/Deps/nostr-rs-relay.nix b/Omni/Bild/Deps/nostr-rs-relay.nix
index 0eef13f..df76cdd 100644
--- a/Omni/Bild/Deps/nostr-rs-relay.nix
+++ b/Omni/Bild/Deps/nostr-rs-relay.nix
@@ -1,5 +1,9 @@
-{ fetchFromSourcehut, rustPlatform, pkg-config, openssl }:
-
+{
+ fetchFromSourcehut,
+ rustPlatform,
+ pkg-config,
+ openssl,
+}:
rustPlatform.buildRustPackage rec {
pname = "nostr-rs-relay";
version = "0.7.15";
@@ -13,7 +17,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-3593pjc4A4NsEnE/ZYsR1vSMCvw2ZJue4EIY6cFa2WA=";
- nativeBuildInputs = [ pkg-config openssl.dev ];
+ nativeBuildInputs = [pkg-config openssl.dev];
- buildInputs = [ openssl.dev ];
+ buildInputs = [openssl.dev];
}
diff --git a/Omni/Bild/Deps/outlines.nix b/Omni/Bild/Deps/outlines.nix
index 29ef41b..6426c15 100644
--- a/Omni/Bild/Deps/outlines.nix
+++ b/Omni/Bild/Deps/outlines.nix
@@ -1,6 +1,19 @@
-{ lib, sources, buildPythonPackage, interegular, jinja2, lark, numpy, perscache
-, pillow, pydantic, regex, scipy, tenacity, torch }:
-
+{
+ lib,
+ sources,
+ buildPythonPackage,
+ interegular,
+ jinja2,
+ lark,
+ numpy,
+ perscache,
+ pillow,
+ pydantic,
+ regex,
+ scipy,
+ tenacity,
+ torch,
+}:
buildPythonPackage rec {
pname = "outlines";
version = sources.outlines.rev;
@@ -23,12 +36,12 @@ buildPythonPackage rec {
];
doCheck = false; # no tests currently
- pythonImportsCheck = [ "outlines" ];
+ pythonImportsCheck = ["outlines"];
meta = with lib; {
description = "Probabilistic Generative Model Programming";
homepage = "https://github.com/normal-computing/outlines";
license = licenses.asl20;
- maintainers = with maintainers; [ bsima ];
+ maintainers = with maintainers; [bsima];
};
}
diff --git a/Omni/Bild/Deps/perscache.nix b/Omni/Bild/Deps/perscache.nix
index 508a261..889f91c 100644
--- a/Omni/Bild/Deps/perscache.nix
+++ b/Omni/Bild/Deps/perscache.nix
@@ -1,16 +1,23 @@
-{ lib, sources, buildPythonPackage, beartype, cloudpickle, icontract, pbr }:
-
+{
+ lib,
+ sources,
+ buildPythonPackage,
+ beartype,
+ cloudpickle,
+ icontract,
+ pbr,
+}:
buildPythonPackage rec {
pname = "perscache";
version = sources.perscache.rev;
src = sources.perscache;
- propagatedBuildInputs = [ beartype cloudpickle icontract pbr ];
+ propagatedBuildInputs = [beartype cloudpickle icontract pbr];
PBR_VERSION = version;
doCheck = false; # no tests currently
- pythonImportsCheck = [ "perscache" ];
+ pythonImportsCheck = ["perscache"];
meta = with lib; {
description = ''
@@ -20,6 +27,6 @@ buildPythonPackage rec {
'';
homepage = "https://github.com/leshchenko1979/perscache";
license = licenses.mit;
- maintainers = with maintainers; [ bsima ];
+ maintainers = with maintainers; [bsima];
};
}