binwalk: simplify visualizationSupport code

This commit is contained in:
Luflosi 2021-02-01 19:17:58 +01:00
parent 5b6a9dc85c
commit 1ca5d3117c
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0
2 changed files with 4 additions and 8 deletions

View File

@ -17,10 +17,10 @@
, matplotlib
, nose
, pycrypto
, pyqtgraph ? null }:
, pyqtgraph
, visualizationSupport ? false }:
let
visualizationSupport = (pyqtgraph != null) && (matplotlib != null);
version = "2.2.0";
in
buildPythonPackage {

View File

@ -931,14 +931,10 @@ in {
binho-host-adapter = callPackage ../development/python-modules/binho-host-adapter { };
binwalk = callPackage ../development/python-modules/binwalk {
pyqtgraph = null;
matplotlib = null;
};
binwalk = callPackage ../development/python-modules/binwalk { };
binwalk-full = appendToName "full" (self.binwalk.override {
pyqtgraph = self.pyqtgraph;
matplotlib = self.matplotlib;
visualizationSupport = true;
});
biopython = callPackage ../development/python-modules/biopython { };