biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / security / amoco / default.nix
blobff9fcc7efe63af9023797fe2e205a14761c85393
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "amoco";
8   version = "2.9.8";
9   format = "setuptools";
11   src = fetchFromGitHub {
12     owner = "bdcht";
13     repo = pname;
14     rev = "v${version}";
15     hash = "sha256-3+1ssFyU7SKFJgDYBQY0kVjmTHOD71D2AjnH+4bfLXo=";
16   };
18   nativeBuildInputs = with python3.pkgs; [
19   ];
21   propagatedBuildInputs = with python3.pkgs; [
22     blessed
23     click
24     crysp
25     grandalf
26     pyparsing
27     tqdm
28     traitlets
29   ];
31   optional-dependencies = {
32     app = with python3.pkgs; [
33       # ccrawl
34       ipython
35       prompt-toolkit
36       pygments
37       # pyside6
38       z3-solver
39     ];
40   };
42   nativeCheckInputs = with python3.pkgs; [
43     pytestCheckHook
44   ];
46   postPatch = ''
47     substituteInPlace setup.py \
48       --replace "'pytest-runner'," ""
49   '';
51   pythonRelaxDeps = [
52     "grandalf"
53     "crysp"
54   ];
56   pythonImportsCheck = [
57     "amoco"
58   ];
60   disabledTests = [
61     # AttributeError: 'str' object has no attribute '__dict__'
62     "test_func"
63   ];
65   meta = with lib; {
66     description = "Tool for analysing binaries";
67     mainProgram = "amoco";
68     homepage = "https://github.com/bdcht/amoco";
69     license = licenses.gpl2Only;
70     maintainers = with maintainers; [ fab ];
71   };