blob: cd2bf2f5508f2f4f7abf03cc0eec90f8f5ac6f32 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{ lib
, angr
, buildPythonPackage
, cmd2
, coreutils
, fetchFromGitHub
, pygments
, pytestCheckHook
, pythonOlder
, setuptools
, stdenv
}:
buildPythonPackage rec {
pname = "angrcli";
version = "1.2.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "fmagin";
repo = "angr-cli";
rev = "refs/tags/v${version}";
hash = "sha256-a5ajUBQwt3xUNkeSOeGOAFf47wd4UVk+LcuAHGqbq4s=";
};
postPatch = ''
substituteInPlace tests/test_derefs.py \
--replace-fail "/bin/ls" "${coreutils}/bin/ls"
'';
build-system = [
setuptools
];
dependencies = [
angr
cmd2
pygments
];
nativeCheckInputs = [
coreutils
pytestCheckHook
];
disabledTests = lib.optionals (!stdenv.hostPlatform.isx86) [
# expects the x86 register "rax" to exist
"test_cc"
"test_loop"
"test_max_depth"
];
pythonImportsCheck = [
"angrcli"
];
meta = with lib; {
description = "Python modules to allow easier interactive use of angr";
homepage = "https://github.com/fmagin/angr-cli";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|