Skip to content

Commit d631d04

Browse files
committed
python311Packages.semgrep: init at 1.74.0
1 parent 9f1f987 commit d631d04

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

pkgs/tools/security/semgrep/default.nix renamed to pkgs/development/python-modules/semgrep/default.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{ lib
2+
, callPackage
23
, fetchFromGitHub
34
, semgrep-core
4-
, buildPythonApplication
5+
, buildPythonPackage
56
, pythonPackages
67

78
, pytestCheckHook
@@ -15,7 +16,7 @@ let
1516
common = import ./common.nix { inherit lib; };
1617
semgrepBinPath = lib.makeBinPath [ semgrep-core ];
1718
in
18-
buildPythonApplication rec {
19+
buildPythonPackage rec {
1920
pname = "semgrep";
2021
inherit (common) version;
2122
src = fetchFromGitHub {
@@ -130,7 +131,7 @@ buildPythonApplication rec {
130131
'';
131132

132133
passthru = {
133-
inherit common;
134+
inherit common semgrep-core;
134135
submodulesSubset = lib.mapAttrs (k: args: fetchFromGitHub args) common.submodules;
135136
updateScript = ./update.sh;
136137
};

pkgs/top-level/all-packages.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11951,8 +11951,8 @@ with pkgs;
1195111951

1195211952
semantic-release = callPackage ../development/tools/semantic-release { };
1195311953

11954-
semgrep = python3.pkgs.callPackage ../tools/security/semgrep { };
11955-
semgrep-core = callPackage ../tools/security/semgrep/semgrep-core.nix { };
11954+
semgrep = python3.pkgs.toPythonApplication python3.pkgs.semgrep;
11955+
inherit (semgrep.passthru) semgrep-core;
1195611956

1195711957
setroot = callPackage ../tools/X11/setroot { };
1195811958

pkgs/top-level/python-packages.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14285,6 +14285,10 @@ self: super: with self; {
1428514285

1428614286
semantic-version = callPackage ../development/python-modules/semantic-version { };
1428714287

14288+
semgrep = callPackage ../development/python-modules/semgrep {
14289+
semgrep-core = callPackage ../development/python-modules/semgrep/semgrep-core.nix { };
14290+
};
14291+
1428814292
semaphore-bot = callPackage ../development/python-modules/semaphore-bot { };
1428914293

1429014294
semver = callPackage ../development/python-modules/semver { };

0 commit comments

Comments
 (0)