Unverified Commit 20df05ee authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.anthropic: 0.39.0 -> 0.42.0 (#371471)

parents 9181bb73 ebbe9f39
Loading
Loading
Loading
Loading
+14 −6
Original line number Diff line number Diff line
@@ -10,9 +10,11 @@
  hatchling,
  httpx,
  jiter,
  nest-asyncio,
  pydantic,
  pytest-asyncio,
  pytestCheckHook,
  pythonAtLeast,
  pythonOlder,
  respx,
  sniffio,
@@ -22,7 +24,7 @@

buildPythonPackage rec {
  pname = "anthropic";
  version = "0.39.0";
  version = "0.42.0";
  pyproject = true;

  disabled = pythonOlder "3.8";
@@ -31,7 +33,7 @@ buildPythonPackage rec {
    owner = "anthropics";
    repo = "anthropic-sdk-python";
    tag = "v${version}";
    hash = "sha256-lpW+waHvwgbhK7EnPZy/XI8gK3a8JjFflPqUFbDN1z8=";
    hash = "sha256-7cRXKXiyq3ty21klkitjjnm9rzBRmAXGYvvVxTNWeZ4=";
  };

  build-system = [
@@ -57,15 +59,21 @@ buildPythonPackage rec {
  nativeCheckInputs = [
    dirty-equals
    pytest-asyncio
    nest-asyncio
    pytestCheckHook
    respx
  ];

  pythonImportsCheck = [ "anthropic" ];

  disabledTests = [
  disabledTests =
    [
      # Test require network access
      "test_copy_build_request"
    ]
    ++ lib.optionals (pythonAtLeast "3.13") [
      # Fails on RuntimeWarning: coroutine method 'aclose' of 'AsyncStream._iter_events' was never awaited
      "test_multi_byte_character_multiple_chunks[async]"
    ];

  disabledTestPaths = [