python311Packages.semgrep: init at 1.74.0

This commit is contained in:
Peder Bergebakken Sundt 2024-11-08 15:16:56 +01:00
parent 9f1f987c19
commit d631d04536
6 changed files with 10 additions and 5 deletions

View File

@ -1,7 +1,8 @@
{ lib
, callPackage
, fetchFromGitHub
, semgrep-core
, buildPythonApplication
, buildPythonPackage
, pythonPackages
, pytestCheckHook
@ -15,7 +16,7 @@ let
common = import ./common.nix { inherit lib; };
semgrepBinPath = lib.makeBinPath [ semgrep-core ];
in
buildPythonApplication rec {
buildPythonPackage rec {
pname = "semgrep";
inherit (common) version;
src = fetchFromGitHub {
@ -130,7 +131,7 @@ buildPythonApplication rec {
'';
passthru = {
inherit common;
inherit common semgrep-core;
submodulesSubset = lib.mapAttrs (k: args: fetchFromGitHub args) common.submodules;
updateScript = ./update.sh;
};

View File

@ -11951,8 +11951,8 @@ with pkgs;
semantic-release = callPackage ../development/tools/semantic-release { };
semgrep = python3.pkgs.callPackage ../tools/security/semgrep { };
semgrep-core = callPackage ../tools/security/semgrep/semgrep-core.nix { };
semgrep = python3.pkgs.toPythonApplication python3.pkgs.semgrep;
inherit (semgrep.passthru) semgrep-core;
setroot = callPackage ../tools/X11/setroot { };

View File

@ -14285,6 +14285,10 @@ self: super: with self; {
semantic-version = callPackage ../development/python-modules/semantic-version { };
semgrep = callPackage ../development/python-modules/semgrep {
semgrep-core = callPackage ../development/python-modules/semgrep/semgrep-core.nix { };
};
semaphore-bot = callPackage ../development/python-modules/semaphore-bot { };
semver = callPackage ../development/python-modules/semver { };