blob: 36c8d4a1d56c3341cbfe2bda30a2bbb1170bc7d9 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
pdm-backend,
# dependencies
pydantic,
# optional-dependencies
opentelemetry-sdk,
# tests
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "agent-client-protocol";
version = "0.12.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "agentclientprotocol";
repo = "python-sdk";
tag = finalAttrs.version;
hash = "sha256-IJJ4zgwkLP7CnU330X1K6p/We3A+tm/Veu64C2XhPS8=";
};
build-system = [
pdm-backend
];
dependencies = [
pydantic
];
optional-dependencies = {
logfire = [
# logfire (unpackaged)
opentelemetry-sdk
];
};
pythonImportsCheck = [ "acp" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# Hangs forever
"test_spawn_agent_process_roundtrip"
];
disabledTestPaths = [
# Optional HTTP transport dependencies are not packaged here.
"tests/http"
];
__darwinAllowLocalNetworking = true;
meta = {
description = "Python SDK for ACP clients and agents";
homepage = "https://github.com/agentclientprotocol/python-sdk";
changelog = "https://github.com/agentclientprotocol/python-sdk/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
})
|