python3Packages.guidance: 0.2.5 -> 0.3.0

R. Ryantm ee239adf 77ac76b5

Changed files
+11 -23
pkgs
development
python-modules
guidance
+11 -23
pkgs/development/python-modules/guidance/default.nix
···
setuptools,
# dependencies
-
diskcache,
guidance-stitch,
+
jinja2,
llguidance,
numpy,
-
ordered-set,
-
platformdirs,
psutil,
pydantic,
-
referencing,
requests,
-
tiktoken,
# optional-dependencies
openai,
-
jsonschema,
-
fastapi,
-
uvicorn,
# tests
huggingface-hub,
+
jsonschema,
pytestCheckHook,
tokenizers,
torch,
···
buildPythonPackage rec {
pname = "guidance";
-
version = "0.2.5";
+
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "guidance-ai";
repo = "guidance";
tag = version;
-
hash = "sha256-dTMJOBGirEumbpTanCVZQJATfLxqxmpUCqE7pah97Zw=";
+
hash = "sha256-ZKHCnLGZdpr/R+vu7crijnKUFc+LMMxIdN9f6hYL7dk=";
};
build-system = [
···
];
dependencies = [
-
diskcache
guidance-stitch
+
jinja2
llguidance
numpy
-
ordered-set
-
platformdirs
psutil
pydantic
-
referencing
requests
-
tiktoken
];
optional-dependencies = {
-
azureai = [ openai ];
+
azureai = [
+
# azure-ai-inference
+
openai
+
];
openai = [ openai ];
-
schemas = [ jsonschema ];
-
server = [
-
fastapi
-
uvicorn
-
];
};
nativeCheckInputs = [
huggingface-hub
+
jsonschema
pytestCheckHook
tokenizers
torch
writableTmpDirAsHomeHook
-
]
-
++ optional-dependencies.schemas;
+
];
enabledTestPaths = [ "tests/unit" ];