Files
nixpkgs/pkgs/development/python-modules/claude-agent-sdk/default.nix
T
2026-03-05 06:53:23 +00:00

57 lines
1.2 KiB
Nix

{
lib,
anyio,
buildPythonPackage,
fetchFromGitHub,
hatchling,
mcp,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
typing-extensions,
}:
buildPythonPackage (finalAttrs: {
pname = "claude-agent-sdk";
version = "0.1.46";
pyproject = true;
src = fetchFromGitHub {
owner = "anthropics";
repo = "claude-agent-sdk-python";
tag = "v${finalAttrs.version}";
hash = "sha256-Cxffdl8oQ9//lURbIVhhX9g1sin2BRj9hJ1/A6Tb++o=";
};
build-system = [ hatchling ];
dependencies = [
anyio
mcp
typing-extensions
];
nativeCheckInputs = [
anyio
pytestCheckHook
pytest-asyncio
pytest-cov-stub
]
++ anyio.passthru.optional-dependencies.trio;
pythonImportsCheck = [ "claude_agent_sdk" ];
disabledTests = [
# Code not available
"test_query_with_async_iterable"
];
meta = {
description = "Python SDK for Claude Agent";
homepage = "https://github.com/anthropics/claude-agent-sdk-python";
changelog = "https://github.com/anthropics/claude-agent-sdk-python/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})