Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081{ lib, buildPythonPackage, fetchFromGitHub,
# build-system pdm-backend,
# dependencies pydantic,
# optional-dependencies h2, httpx, opentelemetry-sdk, websockets,
# tests pytest-asyncio, pytestCheckHook, uvicorn,}:
buildPythonPackage (finalAttrs: { pname = "agent-client-protocol"; version = "0.12.1"; pyproject = true; __structuredAttrs = true;
src = fetchFromGitHub { owner = "agentclientprotocol"; repo = "python-sdk"; tag = finalAttrs.version; hash = "sha256-GBMzhDHOiXGQDyHtDEBpGL4SH/I16Zh/QMePhiLHJSE="; };
build-system = [ pdm-backend ];
dependencies = [ pydantic ];
optional-dependencies = { http = [ h2 httpx websockets ]; logfire = [ # logfire (unpackaged) opentelemetry-sdk ]; };
pythonImportsCheck = [ "acp" ];
nativeCheckInputs = [ pytest-asyncio pytestCheckHook uvicorn ] ++ finalAttrs.passthru.optional-dependencies.http;
disabledTests = [ # Agent subprocess cannot complete in the sandbox. "test_spawn_agent_process_roundtrip" ];
__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 ]; };})