5188e4edd9
Diff: https://github.com/a2aproject/a2a-python/compare/v0.3.23...v0.3.24 Changelog: https://github.com/a2aproject/a2a-python/blob/v0.3.24/CHANGELOG.md
120 lines
2.4 KiB
Nix
120 lines
2.4 KiB
Nix
{
|
|
lib,
|
|
aiosqlite,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
fastapi,
|
|
fetchFromGitHub,
|
|
google-api-core,
|
|
grpcio-reflection,
|
|
grpcio-tools,
|
|
grpcio,
|
|
hatchling,
|
|
httpx-sse,
|
|
httpx,
|
|
opentelemetry-api,
|
|
opentelemetry-sdk,
|
|
protobuf,
|
|
pydantic,
|
|
pyjwt,
|
|
pytest-asyncio,
|
|
pytest-cov-stub,
|
|
pytest-timeout,
|
|
pytest-xdist,
|
|
pytestCheckHook,
|
|
pythonAtLeast,
|
|
respx,
|
|
sqlalchemy,
|
|
sse-starlette,
|
|
starlette,
|
|
uv-dynamic-versioning,
|
|
uvicorn,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "a2a-sdk";
|
|
version = "0.3.24";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "a2aproject";
|
|
repo = "a2a-python";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-NnLyLCoUFzTp9ji8OE+JxtCHMzy0Ri3uPLoN2HyAjxU=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
uv-dynamic-versioning
|
|
];
|
|
|
|
dependencies = [
|
|
google-api-core
|
|
httpx
|
|
httpx-sse
|
|
protobuf
|
|
pydantic
|
|
];
|
|
|
|
optional-dependencies = {
|
|
encryption = [ cryptography ];
|
|
grpc = [
|
|
grpcio
|
|
grpcio-reflection
|
|
grpcio-tools
|
|
];
|
|
http-server = [
|
|
fastapi
|
|
sse-starlette
|
|
starlette
|
|
];
|
|
mysql = [
|
|
sqlalchemy
|
|
]
|
|
++ sqlalchemy.optional-dependencies.asyncio
|
|
++ sqlalchemy.optional-dependencies.postgresql_asyncpg;
|
|
postgresql = [
|
|
sqlalchemy
|
|
]
|
|
++ sqlalchemy.optional-dependencies.asyncio
|
|
++ sqlalchemy.optional-dependencies.postgresql_asyncpg;
|
|
signing = [ pyjwt ];
|
|
sqlite = [
|
|
sqlalchemy
|
|
]
|
|
++ sqlalchemy.optional-dependencies.asyncio
|
|
++ sqlalchemy.optional-dependencies.aiosqlite;
|
|
telemetry = [
|
|
opentelemetry-api
|
|
opentelemetry-sdk
|
|
];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
aiosqlite
|
|
pytest-asyncio
|
|
pytest-cov-stub
|
|
pytest-timeout
|
|
pytest-xdist
|
|
pytestCheckHook
|
|
respx
|
|
uvicorn
|
|
]
|
|
++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
|
|
|
|
pythonImportsCheck = [ "a2a" ];
|
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.14") [
|
|
# _pickle.PicklingError: Can't pickle local object <function...
|
|
"test_notification_triggering"
|
|
];
|
|
|
|
meta = {
|
|
description = "Python SDK for the Agent2Agent (A2A) Protocol";
|
|
homepage = "https://github.com/a2aproject/a2a-python";
|
|
changelog = "https://github.com/a2aproject/a2a-python/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|