python3Packages.openai-agents: init at 0.0.13 (#401857)
This commit is contained in:
commit
bcef7b3978
59
pkgs/development/python-modules/openai-agents/default.nix
Normal file
59
pkgs/development/python-modules/openai-agents/default.nix
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
nix-update-script,
|
||||||
|
buildPythonPackage,
|
||||||
|
fetchPypi,
|
||||||
|
hatchling,
|
||||||
|
griffe,
|
||||||
|
mcp,
|
||||||
|
openai,
|
||||||
|
pydantic,
|
||||||
|
requests,
|
||||||
|
types-requests,
|
||||||
|
typing-extensions,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "openai-agents";
|
||||||
|
version = "0.0.13";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit version;
|
||||||
|
pname = "openai_agents";
|
||||||
|
hash = "sha256-a4AxXnXAa1MCxfKtui+eo4RflGFdrtRwa/uHF0D1YaU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
# OpenAI 1.76.0 seems to not build currently
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml --replace-fail "openai>=1.76.0" "openai"
|
||||||
|
'';
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
hatchling
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
griffe
|
||||||
|
mcp
|
||||||
|
openai
|
||||||
|
pydantic
|
||||||
|
requests
|
||||||
|
types-requests
|
||||||
|
typing-extensions
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"agents"
|
||||||
|
];
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
changelog = "https://github.com/openai/openai-agents-python/releases/tag/${version}";
|
||||||
|
homepage = "https://github.com/openai/openai-agents-python";
|
||||||
|
description = "A lightweight, powerful framework for multi-agent workflows";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = [ lib.maintainers.bryanhonof ];
|
||||||
|
};
|
||||||
|
}
|
@ -10661,6 +10661,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
openaiauth = callPackage ../development/python-modules/openaiauth { };
|
openaiauth = callPackage ../development/python-modules/openaiauth { };
|
||||||
|
|
||||||
|
openai-agents = callPackage ../development/python-modules/openai-agents { };
|
||||||
|
|
||||||
openant = callPackage ../development/python-modules/openant { };
|
openant = callPackage ../development/python-modules/openant { };
|
||||||
|
|
||||||
openapi-core = callPackage ../development/python-modules/openapi-core { };
|
openapi-core = callPackage ../development/python-modules/openapi-core { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user