python310Packages.anthropic: 0.2.10 -> 0.3.6
Diff: https://github.com/anthropics/anthropic-sdk-python/compare/v0.2.10...v0.3.6 Changelog: https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.3.6
This commit is contained in:
parent
664361e485
commit
e89f5ff168
|
@ -1,43 +1,55 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, setuptools
|
, poetry-core
|
||||||
|
, anyio
|
||||||
|
, distro
|
||||||
, httpx
|
, httpx
|
||||||
, importlib-metadata
|
, pydantic
|
||||||
, requests
|
, pytest-asyncio
|
||||||
|
, respx
|
||||||
, tokenizers
|
, tokenizers
|
||||||
, aiohttp
|
, typing-extensions
|
||||||
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "anthropic";
|
pname = "anthropic";
|
||||||
version = "0.2.10";
|
version = "0.3.6";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "anthropics";
|
||||||
hash = "sha256-5NoGGobY/7hgcsCw/q8hmjpPff3dQiTfm6dp5GlJjBk=";
|
repo = "anthropic-sdk-python";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-dfMlM7IRP1PG7Ynr+MR4OPeKnHBbhhWKSug7UQ4/4rI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
setuptools
|
poetry-core
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
anyio
|
||||||
|
distro
|
||||||
httpx
|
httpx
|
||||||
requests
|
pydantic
|
||||||
tokenizers
|
tokenizers
|
||||||
aiohttp
|
typing-extensions
|
||||||
] ++ lib.optionals (pythonOlder "3.8") [
|
|
||||||
importlib-metadata
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# try downloading tokenizer in tests
|
nativeCheckInputs = [
|
||||||
# relates https://github.com/anthropics/anthropic-sdk-python/issues/24
|
pytest-asyncio
|
||||||
doCheck = false;
|
pytestCheckHook
|
||||||
|
respx
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
"api_resources"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"anthropic"
|
"anthropic"
|
||||||
|
@ -49,5 +61,6 @@ buildPythonPackage rec {
|
||||||
changelog = "https://github.com/anthropics/anthropic-sdk-python/releases/tag/v${version}";
|
changelog = "https://github.com/anthropics/anthropic-sdk-python/releases/tag/v${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ natsukium ];
|
maintainers = with maintainers; [ natsukium ];
|
||||||
|
broken = lib.versionAtLeast pydantic.version "2";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue