python3Packages.androguard: update for networkx changes

This commit is contained in:
Emily 2024-07-28 00:02:15 +01:00
parent b24ddbbf57
commit 5612d94418
2 changed files with 18 additions and 0 deletions

View File

@ -42,6 +42,8 @@ buildPythonPackage rec {
sha256 = "1aparxiq11y0hbvkayp92w684nyxyyx7mi0n1x6x51g5z6c58vmy";
};
patches = [ ./drop-removed-networkx-formats.patch ];
build-system = [ setuptools ];
nativeBuildInputs = lib.optionals withGui [ qt5.wrapQtAppsHook ];
@ -59,6 +61,8 @@ buildPythonPackage rec {
pydot
pygments
]
++ networkx.optional-dependencies.default
++ networkx.optional-dependencies.extra
++ lib.optionals withGui [
pyqt5
pyperclip

View File

@ -0,0 +1,14 @@
diff --git a/androguard/cli/main.py b/androguard/cli/main.py
index 13bc1d0ab7..a79b4fe5fa 100644
--- a/androguard/cli/main.py
+++ b/androguard/cli/main.py
@@ -110,9 +110,7 @@
write_methods = dict(gml=_write_gml,
gexf=nx.write_gexf,
- gpickle=nx.write_gpickle,
graphml=nx.write_graphml,
- yaml=nx.write_yaml,
net=nx.write_pajek,
)