summary refs log tree commit diff
path: root/pkgs/tools/security/semgrep/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/security/semgrep/default.nix')
-rw-r--r--pkgs/tools/security/semgrep/default.nix25
1 files changed, 13 insertions, 12 deletions
diff --git a/pkgs/tools/security/semgrep/default.nix b/pkgs/tools/security/semgrep/default.nix
index 8a2b8f0273ffa..0e9c3ddc391c3 100644
--- a/pkgs/tools/security/semgrep/default.nix
+++ b/pkgs/tools/security/semgrep/default.nix
@@ -17,15 +17,17 @@ buildPythonApplication rec {
   pname = "semgrep";
   inherit (common) src version;
 
-  postPatch = (lib.concatStringsSep "\n" (lib.mapAttrsToList (
-    path: submodule: ''
-      # substitute ${path}
-      # remove git submodule placeholder
-      rm -r ${path}
-      # link submodule
-      ln -s ${submodule}/ ${path}
-    ''
-  ) common.submodules)) + ''
+  postPatch = (lib.concatStringsSep "\n" (lib.mapAttrsToList
+    (
+      path: submodule: ''
+        # substitute ${path}
+        # remove git submodule placeholder
+        rm -r ${path}
+        # link submodule
+        ln -s ${submodule}/ ${path}
+      ''
+    )
+    common.submodules)) + ''
     cd cli
   '';
 
@@ -36,10 +38,8 @@ buildPythonApplication rec {
   SEMGREP_SKIP_BIN = true;
 
   pythonRelaxDeps = [
-    "attrs"
     "boltons"
-    "jsonschema"
-    "typing-extensions"
+    "glom"
   ];
 
   propagatedBuildInputs = with pythonPackages; [
@@ -50,6 +50,7 @@ buildPythonApplication rec {
     click-option-group
     glom
     requests
+    rich
     ruamel-yaml
     tqdm
     packaging