{ lib, buildPythonPackage, fetchPypi, llama-index-instrumentation, pydantic, typing-extensions, uv-build, }: buildPythonPackage (finalAttrs: { pname = "llama-index-workflows"; version = "2.26.1"; pyproject = true; src = fetchPypi { pname = "llama_index_workflows"; inherit (finalAttrs) version; hash = "sha256-vSq9fDcwwXki//e6T2MCcn0YdHGIcPv2FXBb89c2G4c="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "uv_build>=0.9.10,<0.10.0" "uv_build" ''; build-system = [ uv-build ]; dependencies = [ llama-index-instrumentation pydantic typing-extensions ]; pythonImportsCheck = [ "workflows" ]; meta = { description = "Event-driven, async-first, step-based way to control the execution flow of AI applications like Agents"; homepage = "https://pypi.org/project/llama-index-workflows/"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; })