02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
70 lines
1.2 KiB
Nix
70 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, isPy3k
|
|
, fetchPypi
|
|
, wrapQtAppsHook
|
|
|
|
# propagates
|
|
, pyasn1
|
|
, pyasn1-modules
|
|
, cxxfilt
|
|
, msgpack
|
|
, pycparser
|
|
|
|
# extras: gui
|
|
, pyqt5
|
|
, pyqtwebengine
|
|
|
|
# knobs
|
|
, withGui ? false
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "vivisect";
|
|
version = "1.0.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-Y8y6sAQJa9baPPdhtuR9Jv1tJkNWJsS1hJ1lknkHWU4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace 'cxxfilt>=0.2.1,<0.3.0' 'cxxfilt'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pyasn1
|
|
pyasn1-modules
|
|
cxxfilt
|
|
msgpack
|
|
pycparser
|
|
] ++ lib.optionals (withGui) passthru.optional-dependencies.gui;
|
|
|
|
passthru.optional-dependencies.gui = [
|
|
pyqt5
|
|
pyqtwebengine
|
|
];
|
|
|
|
postFixup = ''
|
|
wrapQtApp $out/bin/vivbin
|
|
'';
|
|
|
|
# requires another repo for test files
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"vivisect"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Pure python disassembler, debugger, emulator, and static analysis framework";
|
|
homepage = "https://github.com/vivisect/vivisect";
|
|
license = licenses.asl20;
|
|
maintainers = teams.determinatesystems.members;
|
|
};
|
|
}
|