python3Packages.anthropic: 0.79.0 -> 0.84.0 (#496430)

This commit is contained in:
dotlambda
2026-03-04 18:12:04 +00:00
committed by GitHub
3 changed files with 64 additions and 4 deletions
@@ -16,7 +16,6 @@
jiter,
pydantic,
sniffio,
tokenizers,
typing-extensions,
# optional dependencies
@@ -28,6 +27,7 @@
# test
dirty-equals,
http-snapshot,
inline-snapshot,
nest-asyncio,
pytest-asyncio,
@@ -38,14 +38,14 @@
buildPythonPackage (finalAttrs: {
pname = "anthropic";
version = "0.79.0";
version = "0.84.0";
pyproject = true;
src = fetchFromGitHub {
owner = "anthropics";
repo = "anthropic-sdk-python";
tag = "v${finalAttrs.version}";
hash = "sha256-//VKkn9M2uOj8PBoWTY872ZOyTc+OjBgEUGtKsYDWpk=";
hash = "sha256-03nvs97JNQrOu2rxOXWpJiUj+DCI5I/PTcKLuZUZ3t0=";
};
postPatch = ''
@@ -66,7 +66,6 @@ buildPythonPackage (finalAttrs: {
jiter
pydantic
sniffio
tokenizers
typing-extensions
];
@@ -84,6 +83,7 @@ buildPythonPackage (finalAttrs: {
nativeCheckInputs = [
dirty-equals
http-snapshot
inline-snapshot
nest-asyncio
pytest-asyncio
@@ -0,0 +1,58 @@
{
buildPythonPackage,
fetchFromGitHub,
httpx,
inline-snapshot,
lib,
pytest,
pytestCheckHook,
requests,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "http-snapshot";
version = "0.1.9";
pyproject = true;
src = fetchFromGitHub {
owner = "karpetrosyan";
repo = "http-snapshot";
tag = finalAttrs.version;
hash = "sha256-4roxtwzB3HXwvlBqjdHEit4flXlogVwzlYNgQE8vFwE=";
};
build-system = [ setuptools ];
buildInputs = [
pytest
];
dependencies = [
inline-snapshot
];
optional-dependencies = {
httpx = [ httpx ];
requests = [ requests ];
};
pythonImportsCheck = [ "http_snapshot" ];
nativeCheckInputs = [
pytestCheckHook
]
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
pytestFlags = [
"--inline-snapshot=disable"
];
meta = {
changelog = "https://github.com/karpetrosyan/http-snapshot/blob/${finalAttrs.src.tag}/CHANGELOG.md";
description = "Pytest plugin that snapshots requests made with popular Python HTTP clients";
homepage = "https://github.com/karpetrosyan/http-snapshot";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.dotlambda ];
};
})
+2
View File
@@ -7156,6 +7156,8 @@ self: super: with self; {
http-sfv = callPackage ../development/python-modules/http-sfv { };
http-snapshot = callPackage ../development/python-modules/http-snapshot { };
httpagentparser = callPackage ../development/python-modules/httpagentparser { };
httpauth = callPackage ../development/python-modules/httpauth { };