Unverified Commit 57446248 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

python3Packages.llguidance: skip failing tests on python 3.14,...

python3Packages.llguidance: skip failing tests on python 3.14, python3Packages.guidance: 0.3.0 -> 0.3.1 (#488891)
parents 60ac0f66 007dd541
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -28,16 +28,16 @@
  writableTmpDirAsHomeHook,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "guidance";
  version = "0.3.0";
  version = "0.3.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "guidance-ai";
    repo = "guidance";
    tag = version;
    hash = "sha256-ZKHCnLGZdpr/R+vu7crijnKUFc+LMMxIdN9f6hYL7dk=";
    tag = finalAttrs.version;
    hash = "sha256-g0Vb5qcEvGY4S/LzhQvYtLiN1gIDBhPIgdzenSYX7zQ=";
  };

  build-system = [
@@ -107,8 +107,8 @@ buildPythonPackage rec {
  meta = {
    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.tag}";
    changelog = "https://github.com/guidance-ai/guidance/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ natsukium ];
  };
}
})
+5 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  pythonAtLeast,

  # nativeBuildInputs
  cargo,
@@ -91,6 +92,10 @@ buildPythonPackage (finalAttrs: {
    "python/torch_tests/test_llamacpp.py"
    "python/torch_tests/test_tiktoken.py"
    "scripts/tokenizer_test.py"
  ]
  ++ lib.optionals (pythonAtLeast "3.14") [
    # RuntimeError: torch.compile is not supported on Python 3.14+
    "python/torch_tests/test_bitmask.py"
  ];

  meta = {