diff options
Diffstat (limited to 'devel/py-memory-graph/files/patch-memory__graph____init__.py')
-rw-r--r-- | devel/py-memory-graph/files/patch-memory__graph____init__.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/py-memory-graph/files/patch-memory__graph____init__.py b/devel/py-memory-graph/files/patch-memory__graph____init__.py new file mode 100644 index 000000000000..0f263030a9db --- /dev/null +++ b/devel/py-memory-graph/files/patch-memory__graph____init__.py @@ -0,0 +1,23 @@ +# Fix graphviz Python library API compatibility +# +# The memory-graph library uses outdated graphviz API from older versions. +# FreeBSD ports install py-graphviz 0.10.1 which changed the render() method: +# +# Old API (< 0.8): graph.render(outfile=..., quiet=..., quiet_view=...) +# New API (>= 0.8): graph.render(filename=...) +# +# The 'quiet' and 'quiet_view' parameters were deprecated and removed. +# This patch updates the API call to work with modern py-graphviz versions +# while maintaining all core functionality. +# +--- memory_graph/__init__.py.orig 2025-10-04 12:21:39.453707000 -0700 ++++ memory_graph/__init__.py 2025-10-04 12:21:44.778850000 -0700 +@@ -86,7 +86,7 @@ + if outfile.endswith('.gv') or outfile.endswith('.dot'): + graph.save(filename=outfile) + else: +- graph.render(outfile=outfile, view=view, cleanup=False, quiet=False, quiet_view=False) ++ graph.render(filename=outfile, view=view, cleanup=False) + + + def show(data, outfile=None, view=False, numbered = False): |