python3Packages.llm-anthropic: 0.20 -> 0.23
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
json-schema-to-pydantic,
|
||||
llm,
|
||||
llm-anthropic,
|
||||
anthropic,
|
||||
@@ -12,16 +13,16 @@
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "llm-anthropic";
|
||||
version = "0.20";
|
||||
version = "0.23";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "simonw";
|
||||
repo = "llm-anthropic";
|
||||
tag = version;
|
||||
hash = "sha256-tZCFbrsACJl1hC5tSbxJzBBLY8mdcCNjshZilSCAslM=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-ZO9hoDv3YLl8ZCcd5UEDdD5VNPa83N639z1ZxJaFt7Y=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
@@ -30,6 +31,7 @@ buildPythonPackage rec {
|
||||
|
||||
dependencies = [
|
||||
anthropic
|
||||
json-schema-to-pydantic
|
||||
llm
|
||||
];
|
||||
|
||||
@@ -40,6 +42,15 @@ buildPythonPackage rec {
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Need to be run as a passthru test
|
||||
"test_async_prompt"
|
||||
"test_image_prompt"
|
||||
"test_prompt"
|
||||
"test_schema_prompt"
|
||||
"test_thinking_prompt"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "llm_anthropic" ];
|
||||
|
||||
passthru.tests = llm.mkPluginTest llm-anthropic;
|
||||
@@ -47,8 +58,8 @@ buildPythonPackage rec {
|
||||
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/${src.tag}/CHANGELOG.md";
|
||||
changelog = "https://github.com/simonw/llm-anthropic/releases/tag/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ aos ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user