mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-10 22:24:40 +00:00
python311Packages.anthropic: 0.7.8 -> 0.11.0
Diff: https://github.com/anthropics/anthropic-sdk-python/compare/refs/tags/v0.7.8...v0.11.0 Changelog: https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.11.0
This commit is contained in:
parent
ae5c332cbb
commit
f5e1c3b2da
@ -6,6 +6,7 @@
|
|||||||
, distro
|
, distro
|
||||||
, dirty-equals
|
, dirty-equals
|
||||||
, httpx
|
, httpx
|
||||||
|
, google-auth
|
||||||
, sniffio
|
, sniffio
|
||||||
, pydantic
|
, pydantic
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
@ -18,7 +19,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "anthropic";
|
pname = "anthropic";
|
||||||
version = "0.7.8";
|
version = "0.11.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
@ -27,7 +28,7 @@ buildPythonPackage rec {
|
|||||||
owner = "anthropics";
|
owner = "anthropics";
|
||||||
repo = "anthropic-sdk-python";
|
repo = "anthropic-sdk-python";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-1mpNwZJbYdKVmUeUM+PBL6vPhwe8tr2SnAP/t/MMKpI=";
|
hash = "sha256-1g3Bbij9HbMK+JJASe+VTBXx5jCQheXLrcnAD0qMs8g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -44,6 +45,10 @@ buildPythonPackage rec {
|
|||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
|
passthru.optional-dependencies = {
|
||||||
|
vertex = [ google-auth ];
|
||||||
|
};
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
dirty-equals
|
dirty-equals
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
@ -51,8 +56,9 @@ buildPythonPackage rec {
|
|||||||
respx
|
respx
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTestPaths = [
|
||||||
"api_resources"
|
# require network access
|
||||||
|
"tests/api_resources"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
|
Loading…
Reference in New Issue
Block a user