Files
nixpkgs/pkgs/development/python-modules/llm-anthropic/default.nix
Dionysis Grigoropoulos 97d154dbda python3Packages.llm-anthropic: 0.14.1 -> 0.15.1
Diff: https://github.com/simonw/llm-anthropic/compare/0.14.1...0.15.1
Changelog: https://github.com/simonw/llm-anthropic/releases/tag/0.15.1

Also remove the explicit updateScript and use the
writableTmpDirAsHomeHook hook for the tmp home directory.
2025-03-18 17:53:06 +02:00

54 lines
1.1 KiB
Nix

{
lib,
callPackage,
buildPythonPackage,
fetchFromGitHub,
setuptools,
llm,
anthropic,
pytestCheckHook,
pytest-asyncio,
pytest-recording,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "llm-anthropic";
version = "0.15.1";
pyproject = true;
src = fetchFromGitHub {
owner = "simonw";
repo = "llm-anthropic";
tag = version;
hash = "sha256-8bVs3MJteOTCiw7n/4pMf+oXMhsQbCSzUFVQqm2ezcE=";
};
build-system = [
setuptools
llm
];
dependencies = [ anthropic ];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pytest-recording
writableTmpDirAsHomeHook
];
pythonImportsCheck = [ "llm_anthropic" ];
passthru.tests = {
llm-plugin = callPackage ./tests/llm-plugin.nix { };
};
meta = {
description = "LLM access to models by Anthropic, including the Claude series";
homepage = "https://github.com/simonw/llm-anthropic";
changelog = "https://github.com/simonw/llm-anthropic/releases/tag/${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ aos ];
};
}