forked from mirrors/nixpkgs
python3Packages.binwalk: revert zip test breakage
Reported upstream in https://github.com/ReFirmLabs/binwalk/issues/566.
This commit is contained in:
parent
89927af64b
commit
d464358eb5
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, stdenv
|
||||
, zlib
|
||||
, xz
|
||||
|
@ -31,6 +32,19 @@ buildPythonPackage rec {
|
|||
sha256 = "0phqyqv34vhh80dgipiggs4n3iq2vfjk9ywx2c5d8g61vzgbd2g8";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# test_firmware_zip fails with 2.3.3 upgrade
|
||||
# https://github.com/ReFirmLabs/binwalk/issues/566
|
||||
(fetchpatch {
|
||||
url = "https://github.com/ReFirmLabs/binwalk/commit/dd4f2efd275c9dd1001130e82e0f985110cd2754.patch";
|
||||
sha256 = "1707n4nf1d1ay1yn4i8qlrvj2c1120g88hjwyklpsc2s2dcnqj9r";
|
||||
includes = [
|
||||
"testing/tests/test_firmware_zip.py"
|
||||
];
|
||||
revert = true;
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ zlib xz ncompress gzip bzip2 gnutar p7zip cabextract squashfsTools xz pycrypto ]
|
||||
++ lib.optionals visualizationSupport [ matplotlib pyqtgraph ]
|
||||
++ lib.optionals (!stdenv.isDarwin) [ cramfsprogs cramfsswap sasquatch ];
|
||||
|
|
Loading…
Reference in a new issue