diff options
Diffstat (limited to 'pkgs/development/python-modules/guidance/default.nix')
-rw-r--r-- | pkgs/development/python-modules/guidance/default.nix | 62 |
1 files changed, 32 insertions, 30 deletions
diff --git a/pkgs/development/python-modules/guidance/default.nix b/pkgs/development/python-modules/guidance/default.nix index 732a107f2a39..cb153aab3b64 100644 --- a/pkgs/development/python-modules/guidance/default.nix +++ b/pkgs/development/python-modules/guidance/default.nix @@ -1,31 +1,32 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, pybind11 -, setuptools -, wheel -, aiohttp -, diskcache -, fastapi -, gptcache -, msal -, numpy -, openai -, ordered-set -, platformdirs -, protobuf -, pyformlang -, requests -, tiktoken -, torch -, uvicorn +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + pybind11, + setuptools, + wheel, + aiohttp, + diskcache, + fastapi, + gptcache, + msal, + numpy, + openai, + ordered-set, + platformdirs, + protobuf, + pyformlang, + requests, + tiktoken, + torch, + uvicorn, }: buildPythonPackage rec { pname = "guidance"; - version = "0.1.11"; + version = "0.1.16"; pyproject = true; disabled = pythonOlder "3.8"; @@ -34,12 +35,10 @@ buildPythonPackage rec { owner = "guidance-ai"; repo = "guidance"; rev = "refs/tags/${version}"; - hash = "sha256-dvIJeSur3DdNBhrEPNPghxqmDEEig59Iz83LWksim6U="; + hash = "sha256-dPakdT97cuLv4OwdaUFncopD5X6uXGyUjwzqn9fxnhU="; }; - nativeBuildInputs = [ - pybind11 - ]; + nativeBuildInputs = [ pybind11 ]; build-system = [ setuptools @@ -80,6 +79,9 @@ buildPythonPackage rec { "test_recursion_error" "test_openai_class_detection" "test_openai_chat_without_roles" + + # flaky tests + "test_remote_mock_gen" # frequently fails when building packages in parallel ]; disabledTestPaths = [ @@ -96,9 +98,9 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; meta = with lib; { - description = "A guidance language for controlling large language models"; + description = "Guidance language for controlling large language models"; homepage = "https://github.com/guidance-ai/guidance"; - changelog = "https://github.com/guidance-ai/guidance/releases/tag/${src.rev}"; + changelog = "https://github.com/guidance-ai/guidance/releases/tag/${lib.removePrefix "refs/tags/" src.rev}"; license = licenses.mit; maintainers = with maintainers; [ natsukium ]; }; |