python3Packages.anthropic: 0.51.0 -> 0.52.2 (#413651)

This commit is contained in:
Pol Dellaiera 2025-06-06 06:05:32 +02:00 committed by GitHub
commit 5c0095f818
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 7 deletions

View file

@ -30,14 +30,14 @@
buildPythonPackage rec {
pname = "anthropic";
version = "0.51.0";
version = "0.52.2";
pyproject = true;
src = fetchFromGitHub {
owner = "anthropics";
repo = "anthropic-sdk-python";
tag = "v${version}";
hash = "sha256-gD3qZpPKtKZtuoGqnKVgFp0gCxpL0Aq5NGFCMk+z3cQ=";
hash = "sha256-vCIS2NDsScKESfYFHDTSRLb9ZhUsrEPHyfuubrbc+44=";
};
postPatch = ''

View file

@ -20,14 +20,14 @@
buildPythonPackage rec {
pname = "langchain-anthropic";
version = "0.3.13";
version = "0.3.15";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
tag = "langchain-anthropic==${version}";
hash = "sha256-CloIxDPnBnKDUeS4psRvpz8ifK/xR/U62wG+ORHginM=";
hash = "sha256-GOD6pMuUDCfrQ6MP+/HXZIg5wHUDRysosEjXjewY/9M=";
};
sourceRoot = "${src.name}/libs/partners/anthropic";
@ -52,7 +52,9 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [ "tests/unit_tests" ];
disabledTestPaths = [
"tests/integration_tests"
];
pythonImportsCheck = [ "langchain_anthropic" ];

View file

@ -10,6 +10,10 @@
httpx,
langchain-core,
syrupy,
pytest-benchmark,
pytest-codspeed,
pytest-recording,
vcrpy,
# buildInputs
pytest,
@ -26,14 +30,14 @@
buildPythonPackage rec {
pname = "langchain-tests";
version = "0.3.19";
version = "0.3.20";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
tag = "langchain-tests==${version}";
hash = "sha256-DSTngWRFseJ6kSAY7Lxxkh77QFr0jhHxG3mH89QmdxA=";
hash = "sha256-RMuxWA/n8d71FReFKO3Y/5P0MYk4aZ5WU2/TRxf9UuE=";
};
sourceRoot = "${src.name}/libs/standard-tests";
@ -51,8 +55,12 @@ buildPythonPackage rec {
httpx
langchain-core
pytest-asyncio
pytest-benchmark
pytest-codspeed
pytest-recording
pytest-socket
syrupy
vcrpy
];
buildInputs = [ pytest ];