Something went wrong. Try again.
lol
Something went wrong. Try again.
2.1 kB · 109 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110{ lib, aiohttp, anyio, buildPythonPackage, click, dirty-equals, distro, fetchPypi, fire, hatch-fancy-pypi-readme, hatchling, httpx-aiohttp, httpx, nest-asyncio, openai, pandas, prompt-toolkit, pyaml, pydantic, pytest-asyncio, pytest-xdist, pytestCheckHook, requests, respx, rich, sniffio, termcolor, tqdm, typing-extensions,}:
buildPythonPackage (finalAttrs: { pname = "llama-stack-client"; version = "0.7.2"; pyproject = true;
src = fetchPypi { pname = "llama_stack_client"; inherit (finalAttrs) version; hash = "sha256-DjRYgAr2oY/Y/F4HYO1iaTGkFvbB/fJK66QAHm/Kmuw="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "hatchling==1.26.3" "hatchling" '';
build-system = [ hatch-fancy-pypi-readme hatchling ];
dependencies = [ anyio click distro fire httpx pandas prompt-toolkit pyaml pydantic requests rich sniffio termcolor tqdm typing-extensions ];
optional-dependencies = { aiohttp = [ aiohttp httpx-aiohttp ]; };
nativeCheckInputs = [ dirty-equals nest-asyncio openai pytest-asyncio pytest-xdist pytestCheckHook respx ] ++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
pythonImportsCheck = [ "llama_stack_client" ];
disabledTestPaths = [ # Tests require network access "tests/api_resources/" "tests/test_client.py" "tests/integration/test_agent_turn_step_events.py"
# AttributeError: 'Agent' object has no attribute '_session_last_response_id' "tests/lib/agents/test_agent_responses.py::test_agent_tracks_multiple_sessions" ];
meta = { description = "Library for the llama-stack-client API"; homepage = "https://github.com/llamastack/llama-stack-client-python"; changelog = "https://github.com/llamastack/llama-stack-client-python/releases/tag/v${finalAttrs.version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };})