27 buildPythonPackage rec {
32 disabled = pythonOlder "3.8";
34 src = fetchFromGitHub {
35 owner = "guidance-ai";
37 rev = "refs/tags/${version}";
38 hash = "sha256-dPakdT97cuLv4OwdaUFncopD5X6uXGyUjwzqn9fxnhU=";
41 nativeBuildInputs = [ pybind11 ];
71 # require network access
79 "test_recursion_error"
80 "test_openai_class_detection"
81 "test_openai_chat_without_roles"
84 "test_remote_mock_gen" # frequently fails when building packages in parallel
88 # require network access
89 "tests/library/test_gen.py"
96 pythonImportsCheck = [ "guidance" ];
98 __darwinAllowLocalNetworking = true;
101 description = "Guidance language for controlling large language models";
102 homepage = "https://github.com/guidance-ai/guidance";
103 changelog = "https://github.com/guidance-ai/guidance/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
104 license = licenses.mit;
105 maintainers = with maintainers; [ natsukium ];