Unverified Commit 39d1d220 authored by Austin Horstman's avatar Austin Horstman Committed by GitHub
Browse files

python3Packages.llm-anthropic: 0.14.1 -> 0.15.1 (#391000)

parents d917b5e7 97d154db
Loading
Loading
Loading
Loading
+4 −11
Original line number Diff line number Diff line
@@ -9,19 +9,19 @@
  pytestCheckHook,
  pytest-asyncio,
  pytest-recording,
  nix-update-script,
  writableTmpDirAsHomeHook,
}:

buildPythonPackage rec {
  pname = "llm-anthropic";
  version = "0.14.1";
  version = "0.15.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "simonw";
    repo = "llm-anthropic";
    tag = version;
    hash = "sha256-tKgcag8sBJA4QWunaFyZxkZH0mtc0SS17104YuX1Kac=";
    hash = "sha256-8bVs3MJteOTCiw7n/4pMf+oXMhsQbCSzUFVQqm2ezcE=";
  };

  build-system = [
@@ -30,22 +30,15 @@ buildPythonPackage rec {
  ];
  dependencies = [ anthropic ];

  # Otherwise tests will fail to create directory
  # Permission denied: '/homeless-shelter'
  preCheck = ''
    export HOME=$(mktemp -d)
  '';

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
    pytest-recording
    writableTmpDirAsHomeHook
  ];

  pythonImportsCheck = [ "llm_anthropic" ];

  passthru.updateScript = nix-update-script { };

  passthru.tests = {
    llm-plugin = callPackage ./tests/llm-plugin.nix { };
  };