mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
python3Packages.anthropic: 0.51.0 -> 0.52.2 (#413651)
This commit is contained in:
commit
5c0095f818
3 changed files with 17 additions and 7 deletions
|
@ -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 = ''
|
||||
|
|
|
@ -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" ];
|
||||
|
||||
|
|
|
@ -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 ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue