Gaetan Lepage
2025-04-28 19:39:31 +02:00
parent 1713b020bf
commit 6d3cac67d5
@@ -23,19 +23,19 @@
buildPythonPackage rec {
pname = "llguidance";
version = "0.7.11";
version = "0.7.19";
pyproject = true;
src = fetchFromGitHub {
owner = "guidance-ai";
repo = "llguidance";
tag = "v${version}";
hash = "sha256-d0xwBaWiBBlPrKHpDKDBINBGU+PCfpfnL4FOxNmFvG8=";
hash = "sha256-tfTiut8jiGGf2uQLGcC4ieNf4ePFauJZL6vNbWie078=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
hash = "sha256-UeBgYMYFAVSa6QQIqZ2iY+xIRxQdFBetZ7dIalim+FQ=";
hash = "sha256-I1sjkZgtsBpPVkGL596TjLi9txRmgP5oTIWaM1K5I1E=";
};
build-system = [
@@ -75,8 +75,11 @@ buildPythonPackage rec {
[
# Require internet access (https://huggingface.co)
"test_grammar"
"test_par_grammar"
"test_incomplete_tokenizer"
"test_par_errors"
"test_par_grammar"
"test_tokenize_partial_basic"
"test_tokenize_partial_docs"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# torch._inductor.exc.CppCompileError: C++ compile error
@@ -95,6 +98,7 @@ buildPythonPackage rec {
meta = {
description = "Super-fast Structured Outputs";
homepage = "https://github.com/guidance-ai/llguidance";
changelog = "https://github.com/guidance-ai/llguidance/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
};