Merge pull request #95580 from flokli/binwalk-visual-entropy-graphing
binwalk-full: enable visual entropy graphing (needs matplotlib)
This commit is contained in:
commit
d45c287d9a
@ -12,12 +12,13 @@
|
|||||||
, cramfsprogs
|
, cramfsprogs
|
||||||
, cramfsswap
|
, cramfsswap
|
||||||
, lzma
|
, lzma
|
||||||
|
, matplotlib
|
||||||
, nose
|
, nose
|
||||||
, pycrypto
|
, pycrypto
|
||||||
, pyqtgraph ? null }:
|
, pyqtgraph ? null }:
|
||||||
|
|
||||||
let
|
let
|
||||||
visualizationSupport = (pyqtgraph != null);
|
visualizationSupport = (pyqtgraph != null) && (matplotlib != null);
|
||||||
version = "2.2.0";
|
version = "2.2.0";
|
||||||
in
|
in
|
||||||
buildPythonPackage {
|
buildPythonPackage {
|
||||||
@ -32,7 +33,7 @@ buildPythonPackage {
|
|||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ zlib xz ncompress gzip bzip2 gnutar p7zip cabextract cramfsswap cramfsprogs lzma pycrypto ]
|
propagatedBuildInputs = [ zlib xz ncompress gzip bzip2 gnutar p7zip cabextract cramfsswap cramfsprogs lzma pycrypto ]
|
||||||
++ stdenv.lib.optional visualizationSupport pyqtgraph;
|
++ stdenv.lib.optionals visualizationSupport [ matplotlib pyqtgraph ];
|
||||||
|
|
||||||
# setup.py only installs version.py during install, not test
|
# setup.py only installs version.py during install, not test
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -2052,10 +2052,12 @@ in {
|
|||||||
|
|
||||||
binwalk = callPackage ../development/python-modules/binwalk {
|
binwalk = callPackage ../development/python-modules/binwalk {
|
||||||
pyqtgraph = null;
|
pyqtgraph = null;
|
||||||
|
matplotlib = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
binwalk-full = appendToName "full" (self.binwalk.override {
|
binwalk-full = appendToName "full" (self.binwalk.override {
|
||||||
pyqtgraph = self.pyqtgraph;
|
pyqtgraph = self.pyqtgraph;
|
||||||
|
matplotlib = self.matplotlib;
|
||||||
});
|
});
|
||||||
|
|
||||||
bitmath = callPackage ../development/python-modules/bitmath { };
|
bitmath = callPackage ../development/python-modules/bitmath { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user