about summary refs log tree commit diff
diff options
context:
space:
mode:
authornatsukium <tomoya.otabi@gmail.com>2024-03-04 10:15:56 +0900
committernatsukium <tomoya.otabi@gmail.com>2024-03-09 12:04:01 +0900
commit1b7d1bd6e1d6297d785f4c20a906a155be7b6ed3 (patch)
treefdf9b2534a07d47fa6afa281aef5df11c3a1bf3b
parente4e7f582c2d26fdcf05ed7f3233982f58ec5a246 (diff)
downloadnixlib-1b7d1bd6e1d6297d785f4c20a906a155be7b6ed3.tar
nixlib-1b7d1bd6e1d6297d785f4c20a906a155be7b6ed3.tar.gz
nixlib-1b7d1bd6e1d6297d785f4c20a906a155be7b6ed3.tar.bz2
nixlib-1b7d1bd6e1d6297d785f4c20a906a155be7b6ed3.tar.lz
nixlib-1b7d1bd6e1d6297d785f4c20a906a155be7b6ed3.tar.xz
nixlib-1b7d1bd6e1d6297d785f4c20a906a155be7b6ed3.tar.zst
nixlib-1b7d1bd6e1d6297d785f4c20a906a155be7b6ed3.zip
python311Packages.guidance: 0.1.6 -> 0.1.11
Diff: https://github.com/guidance-ai/guidance/compare/refs/tags/0.1.6...0.1.11

Changelog: https://github.com/guidance-ai/guidance/releases/tag/refs/tags/0.1.11
-rw-r--r--pkgs/development/python-modules/guidance/default.nix19
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/guidance/default.nix b/pkgs/development/python-modules/guidance/default.nix
index a8d382310d60..732a107f2a39 100644
--- a/pkgs/development/python-modules/guidance/default.nix
+++ b/pkgs/development/python-modules/guidance/default.nix
@@ -8,22 +8,24 @@
 , wheel
 , aiohttp
 , diskcache
+, fastapi
 , gptcache
 , msal
-, nest-asyncio
 , numpy
 , openai
 , ordered-set
 , platformdirs
+, protobuf
 , pyformlang
 , requests
 , tiktoken
 , torch
+, uvicorn
 }:
 
 buildPythonPackage rec {
   pname = "guidance";
-  version = "0.1.6";
+  version = "0.1.11";
   pyproject = true;
 
   disabled = pythonOlder "3.8";
@@ -32,28 +34,33 @@ buildPythonPackage rec {
     owner = "guidance-ai";
     repo = "guidance";
     rev = "refs/tags/${version}";
-    hash = "sha256-Z3EuHAQPPXf/i0HnbDhGv5KBUBP0aZDHTwpff7g2E3g=";
+    hash = "sha256-dvIJeSur3DdNBhrEPNPghxqmDEEig59Iz83LWksim6U=";
   };
 
   nativeBuildInputs = [
     pybind11
+  ];
+
+  build-system = [
     setuptools
     wheel
   ];
 
-  propagatedBuildInputs = [
+  dependencies = [
     aiohttp
     diskcache
+    fastapi
     gptcache
     msal
-    nest-asyncio
     numpy
     openai
     ordered-set
     platformdirs
+    protobuf
     pyformlang
     requests
     tiktoken
+    uvicorn
   ];
 
   nativeCheckInputs = [
@@ -86,6 +93,8 @@ buildPythonPackage rec {
 
   pythonImportsCheck = [ "guidance" ];
 
+  __darwinAllowLocalNetworking = true;
+
   meta = with lib; {
     description = "A guidance language for controlling large language models";
     homepage = "https://github.com/guidance-ai/guidance";