Merge pull request #326295 from jchw-forks/fix/binwalk
binwalk: migrate to fork, 2.4.1
This commit is contained in:
commit
6bf4ef3faf
@ -2,7 +2,6 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
stdenv,
|
||||
zlib,
|
||||
xz,
|
||||
@ -14,37 +13,29 @@
|
||||
cramfsprogs,
|
||||
cramfsswap,
|
||||
sasquatch,
|
||||
setuptools,
|
||||
squashfsTools,
|
||||
matplotlib,
|
||||
nose,
|
||||
pycrypto,
|
||||
pyqtgraph,
|
||||
pyqt5,
|
||||
pytestCheckHook,
|
||||
visualizationSupport ? false,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "binwalk${lib.optionalString visualizationSupport "-full"}";
|
||||
version = "2.3.4";
|
||||
format = "setuptools";
|
||||
version = "2.4.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ReFirmLabs";
|
||||
owner = "OSPG";
|
||||
repo = "binwalk";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-hlPbzqGRSXcIqlI+SNKq37CnnHd1IoMBNSjhyeAM1TE=";
|
||||
hash = "sha256-VApqQrVBV7w15Bpwc6Fd/cA1Ikqu7Ds8qu0TH68YVog=";
|
||||
};
|
||||
|
||||
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;
|
||||
})
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs =
|
||||
[
|
||||
@ -80,12 +71,12 @@ buildPythonPackage rec {
|
||||
HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [ nose ];
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "binwalk" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ReFirmLabs/binwalk";
|
||||
homepage = "https://github.com/OSPG/binwalk";
|
||||
description = "Tool for searching a given binary image for embedded files";
|
||||
mainProgram = "binwalk";
|
||||
maintainers = [ maintainers.koral ];
|
||||
|
Loading…
Reference in New Issue
Block a user