{ lib, buildPythonPackage, eval-type-backport, fetchPypi, uv-build, llama-index-instrumentation, pydantic, }: buildPythonPackage (finalAttrs: { pname = "llama-index-workflows"; version = "2.20.0"; pyproject = true; src = fetchPypi { pname = "llama_index_workflows"; inherit (finalAttrs) version; hash = "sha256-3ydg/qnhAMl6TpGdJVRh40RBOsrEOC0X2CFzN4BuR3I="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "uv_build>=0.9.10,<0.10.0" "uv_build" ''; build-system = [ uv-build ]; dependencies = [ eval-type-backport llama-index-instrumentation pydantic ]; 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 ]; }; })