2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-05-24 13:37:59 +00:00
|
|
|
, cxxfilt
|
2021-04-25 03:57:28 +00:00
|
|
|
, fetchPypi
|
2023-05-24 13:37:59 +00:00
|
|
|
, msgpack
|
2021-04-25 03:57:28 +00:00
|
|
|
, pyasn1
|
|
|
|
, pyasn1-modules
|
|
|
|
, pycparser
|
2022-04-27 09:35:20 +00:00
|
|
|
, pyqt5
|
2023-05-24 13:37:59 +00:00
|
|
|
, pythonRelaxDepsHook
|
2022-04-27 09:35:20 +00:00
|
|
|
, pyqtwebengine
|
2023-05-24 13:37:59 +00:00
|
|
|
, pythonOlder
|
2022-04-27 09:35:20 +00:00
|
|
|
, withGui ? false
|
2023-05-24 13:37:59 +00:00
|
|
|
, wrapQtAppsHook
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vivisect";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "1.1.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-04 12:14:45 +00:00
|
|
|
hash = "sha256-tAIhsHFds3qwPngfOsR1+xDKgi29ACnvFAYoklRnCAI=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"cxxfilt"
|
|
|
|
"pyasn1"
|
|
|
|
"pyasn1-modules"
|
|
|
|
];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-05-24 13:37:59 +00:00
|
|
|
pythonRelaxDepsHook
|
2022-04-27 09:35:20 +00:00
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyasn1
|
|
|
|
pyasn1-modules
|
|
|
|
cxxfilt
|
|
|
|
msgpack
|
|
|
|
pycparser
|
2022-06-16 17:23:12 +00:00
|
|
|
] ++ lib.optionals (withGui) passthru.optional-dependencies.gui;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru.optional-dependencies.gui = [
|
2022-04-27 09:35:20 +00:00
|
|
|
pyqt5
|
|
|
|
pyqtwebengine
|
2021-04-25 03:57:28 +00:00
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapQtApp $out/bin/vivbin
|
2021-04-25 03:57:28 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# requires another repo for test files
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"vivisect"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-05-24 13:37:59 +00:00
|
|
|
description = "Python disassembler, debugger, emulator, and static analysis framework";
|
2021-04-25 03:57:28 +00:00
|
|
|
homepage = "https://github.com/vivisect/vivisect";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/vivisect/vivisect/blob/v${version}/CHANGELOG.rst";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = licenses.asl20;
|
2023-03-24 00:07:29 +00:00
|
|
|
maintainers = [ ];
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
}
|