1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 griffe,
7 mcp,
8 openai,
9 pydantic,
10 requests,
11 types-requests,
12 typing-extensions,
13}:
14
15buildPythonPackage rec {
16 pname = "openai-agents";
17 version = "0.2.9";
18 pyproject = true;
19
20 src = fetchPypi {
21 inherit version;
22 pname = "openai_agents";
23 hash = "sha256-YZxRyM5J+EFHSp5hlXPW9/lqRkMpAHUhRa0EMJq3Cuk=";
24 };
25
26 build-system = [
27 hatchling
28 ];
29
30 dependencies = [
31 griffe
32 mcp
33 openai
34 pydantic
35 requests
36 types-requests
37 typing-extensions
38 ];
39
40 pythonImportsCheck = [
41 "agents"
42 ];
43
44 meta = {
45 changelog = "https://github.com/openai/openai-agents-python/releases/tag/${version}";
46 homepage = "https://github.com/openai/openai-agents-python";
47 description = "Lightweight, powerful framework for multi-agent workflows";
48 license = lib.licenses.mit;
49 maintainers = [ lib.maintainers.bryanhonof ];
50 };
51}