24 buildPythonPackage rec {
29 src = fetchFromGitHub {
30 owner = "guidance-ai";
33 hash = "sha256-dPakdT97cuLv4OwdaUFncopD5X6uXGyUjwzqn9fxnhU=";
52 optional-dependencies = {
55 schemas = [ jsonschema ];
66 ] ++ optional-dependencies.schemas;
68 pytestFlagsArray = [ "tests/unit" ];
71 # require network access
79 "test_recursion_error"
80 "test_openai_class_detection"
81 "test_openai_chat_without_roles"
84 "test_image_from_bytes"
85 "test_remote_image_not_found"
88 "test_remote_mock_gen" # frequently fails when building packages in parallel
92 # require network access
93 "tests/unit/test_tokenizers.py"
101 pythonImportsCheck = [ "guidance" ];
103 __darwinAllowLocalNetworking = true;
106 description = "Guidance language for controlling large language models";
107 homepage = "https://github.com/guidance-ai/guidance";
108 changelog = "https://github.com/guidance-ai/guidance/releases/tag/${src.tag}";
109 license = lib.licenses.mit;
110 maintainers = with lib.maintainers; [ natsukium ];