mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
python3Packages.androguard: update for networkx changes
This commit is contained in:
parent
b24ddbbf57
commit
5612d94418
@ -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
|
||||
|
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user