diff --git a/pkgs/development/python-modules/anthropic/default.nix b/pkgs/development/python-modules/anthropic/default.nix index 475cca59c46b..b5605dfea503 100644 --- a/pkgs/development/python-modules/anthropic/default.nix +++ b/pkgs/development/python-modules/anthropic/default.nix @@ -1,25 +1,26 @@ { lib -, buildPythonPackage -, fetchFromGitHub -, hatchling , anyio -, distro +, buildPythonPackage , dirty-equals -, httpx +, distro +, fetchFromGitHub , google-auth -, sniffio +, hatch-fancy-pypi-readme +, hatchling +, httpx , pydantic , pytest-asyncio -, respx -, tokenizers -, typing-extensions , pytestCheckHook , pythonOlder +, respx +, sniffio +, tokenizers +, typing-extensions }: 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; {