Unverified Commit 5c0095f8 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

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

parents 6ad174a6 495cadca
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 = ''
+5 −3
Original line number Diff line number Diff line
@@ -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 −2
Original line number Diff line number Diff line
@@ -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 ];