blob: 647eed219ba20eb17c059bb7db5f40eb96ded9cd (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
pdm-backend,
# dependencies
pydantic,
# optional-dependencies
opentelemetry-sdk,
# tests
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "agent-client-protocol";
version = "0.7.1";
pyproject = true;
src = fetchFromGitHub {
owner = "agentclientprotocol";
repo = "python-sdk";
tag = version;
hash = "sha256-pUOs6TUc0qmY+/AWTtm5kKouHKL8cLMhJ+nZT4r+6sI=";
};
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"
];
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/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
|