blob: 3531b60d42c1f7d8e8fd60204cd4efe4907599ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
anyio,
buildPythonPackage,
fetchFromGitHub,
hatchling,
mcp,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
typing-extensions,
}:
buildPythonPackage (finalAttrs: {
pname = "claude-agent-sdk";
version = "0.2.82";
pyproject = true;
src = fetchFromGitHub {
owner = "anthropics";
repo = "claude-agent-sdk-python";
tag = "v${finalAttrs.version}";
hash = "sha256-mv04UsKb8hPNFYhOCQcgav9FxwKNswWpX/TkiGcqEHI=";
};
build-system = [ hatchling ];
dependencies = [
anyio
mcp
typing-extensions
];
nativeCheckInputs = [
anyio
pytestCheckHook
pytest-asyncio
pytest-cov-stub
]
++ anyio.passthru.optional-dependencies.trio;
pythonImportsCheck = [ "claude_agent_sdk" ];
disabledTests = [
# Code not available
"test_query_with_async_iterable"
];
meta = {
description = "Python SDK for Claude Agent";
homepage = "https://github.com/anthropics/claude-agent-sdk-python";
changelog = "https://github.com/anthropics/claude-agent-sdk-python/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})
|