Commit 2c4db346 authored by Fabian Affolter's avatar Fabian Affolter
Browse files
parent aa7fff96
Loading
Loading
Loading
Loading
+24 −12
Original line number Diff line number Diff line
{ lib
, anyio
, buildPythonPackage
, dirty-equals
, distro
, fetchFromGitHub
, google-auth
, hatch-fancy-pypi-readme
, hatchling
, anyio
, distro
, dirty-equals
, httpx
, google-auth
, sniffio
, pydantic
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, respx
, sniffio
, tokenizers
, typing-extensions
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "anthropic";
  version = "0.19.1";
  version = "0.25.6";
  pyproject = true;

  disabled = pythonOlder "3.8";
@@ -28,11 +29,12 @@ buildPythonPackage rec {
    owner = "anthropics";
    repo = "anthropic-sdk-python";
    rev = "refs/tags/v${version}";
    hash = "sha256-D9asbwZ9puOuIK6w7cWJ2HmC3JYjamUZPOxVKWq+Va4=";
    hash = "sha256-83TufOgu6W9UvoCEUgDiw6gXDAdwyIKEALVF0hjj6wk=";
  };

  build-system = [
    hatchling
    hatch-fancy-pypi-readme
  ];

  dependencies = [
@@ -56,13 +58,23 @@ buildPythonPackage rec {
    respx
  ];

  pythonImportsCheck = [
    "anthropic"
  ];

  disabledTests = [
    # Test require network access
    "test_copy_build_request"
  ];

  disabledTestPaths = [
    # require network access
    # Test require network access
    "tests/api_resources"
  ];

  pythonImportsCheck = [
    "anthropic"
  pytestFlagsArray = [
    "-W"
    "ignore::DeprecationWarning"
  ];

  meta = with lib; {