summary refs log tree commit diff
path: root/pkgs/tools/security
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-09-30 09:19:02 +0200
committerGitHub <noreply@github.com>2022-09-30 09:19:02 +0200
commitbc8539048d3c9a67017f8860efcf1a2de1c06760 (patch)
tree2f12a7a6ba650918df5cbff5217a0f9ecfb1dda4 /pkgs/tools/security
parent46f7981bfefd2957d1de2ef0252946dbb0a6e3b4 (diff)
parent0d095b3a0a4600e9d0fb5155fe87d02e2690ec7d (diff)
downloadnixpkgs-bc8539048d3c9a67017f8860efcf1a2de1c06760.tar
nixpkgs-bc8539048d3c9a67017f8860efcf1a2de1c06760.tar.gz
nixpkgs-bc8539048d3c9a67017f8860efcf1a2de1c06760.tar.bz2
nixpkgs-bc8539048d3c9a67017f8860efcf1a2de1c06760.tar.lz
nixpkgs-bc8539048d3c9a67017f8860efcf1a2de1c06760.tar.xz
nixpkgs-bc8539048d3c9a67017f8860efcf1a2de1c06760.tar.zst
nixpkgs-bc8539048d3c9a67017f8860efcf1a2de1c06760.zip
Merge pull request #178020 from fabaff/amoco
amoco: init at 2.9.8
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r--pkgs/tools/security/amoco/default.nix72
1 files changed, 72 insertions, 0 deletions
diff --git a/pkgs/tools/security/amoco/default.nix b/pkgs/tools/security/amoco/default.nix
new file mode 100644
index 00000000000..88f614e4c90
--- /dev/null
+++ b/pkgs/tools/security/amoco/default.nix
@@ -0,0 +1,72 @@
+{ lib
+, fetchFromGitHub
+, python3
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "amoco";
+  version = "2.9.8";
+  format = "setuptools";
+
+  src = fetchFromGitHub {
+    owner = "bdcht";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-3+1ssFyU7SKFJgDYBQY0kVjmTHOD71D2AjnH+4bfLXo=";
+  };
+
+  nativeBuildInputs = with python3.pkgs; [
+    pythonRelaxDepsHook
+  ];
+
+  propagatedBuildInputs = with python3.pkgs; [
+    blessed
+    click
+    crysp
+    grandalf
+    pyparsing
+    tqdm
+    traitlets
+  ];
+
+  passthru.optional-dependencies = {
+    app = with python3.pkgs; [
+      # ccrawl
+      ipython
+      prompt-toolkit
+      pygments
+      # pyside6
+      z3
+    ];
+  };
+
+  checkInputs = with python3.pkgs; [
+    pytestCheckHook
+  ];
+
+  postPatch = ''
+    substituteInPlace setup.py \
+      --replace "'pytest-runner'," ""
+  '';
+
+  pythonRelaxDeps = [
+    "grandalf"
+    "crysp"
+  ];
+
+  pythonImportsCheck = [
+    "amoco"
+  ];
+
+  disabledTests = [
+    # AttributeError: 'str' object has no attribute '__dict__'
+    "test_func"
+  ];
+
+  meta = with lib; {
+    description = "Tool for analysing binaries";
+    homepage = "https://github.com/bdcht/amoco";
+    license = licenses.gpl2Only;
+    maintainers = with maintainers; [ fab ];
+  };
+}