1{ lib
2, buildPythonPackage
3, isPy3k
4, fetchPypi
5, pyasn1
6, pyasn1-modules
7, cxxfilt
8, msgpack
9, pycparser
10}:
11buildPythonPackage rec {
12 pname = "vivisect";
13 version = "1.0.5";
14 disabled = isPy3k;
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "f629dc0143656b06b64e2da1772deda67d37a3e048e74bd728de4a4f24bf877b";
19 };
20
21 propagatedBuildInputs = [
22 pyasn1
23 pyasn1-modules
24 cxxfilt
25 msgpack
26 pycparser
27 ];
28
29 preBuild = ''
30 sed "s@==.*'@'@" -i setup.py
31 '';
32
33 # requires another repo for test files
34 doCheck = false;
35
36 pythonImportsCheck = [
37 "vivisect"
38 ];
39
40 meta = with lib; {
41 description = "Pure python disassembler, debugger, emulator, and static analysis framework";
42 homepage = "https://github.com/vivisect/vivisect";
43 license = licenses.asl20;
44 maintainers = teams.determinatesystems.members;
45 };
46}