Loading pkgs/tools/security/semgrep/common.nix→pkgs/development/python-modules/semgrep/common.nix +0 −0 File moved. View file pkgs/tools/security/semgrep/default.nix→pkgs/development/python-modules/semgrep/default.nix +4 −3 Original line number Diff line number Diff line { lib , callPackage , fetchFromGitHub , semgrep-core , buildPythonApplication , buildPythonPackage , pythonPackages , pytestCheckHook Loading @@ -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 { Loading Loading @@ -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; }; Loading pkgs/tools/security/semgrep/semgrep-core.nix→pkgs/development/python-modules/semgrep/semgrep-core.nix +0 −0 File moved. View file pkgs/tools/security/semgrep/update.sh→pkgs/development/python-modules/semgrep/update.sh +0 −0 File moved. View file pkgs/development/python-modules/whispers/default.nix +19 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,8 @@ pytestCheckHook, pythonOlder, pyyaml, wrapt, semgrep, setuptools, }: Loading @@ -35,6 +37,12 @@ buildPythonPackage rec { --replace-fail '"pytest-runner"' "" ''; pythonRelaxDeps = [ "lxml" "pyyaml" "semgrep" ]; build-system = [ setuptools ]; dependencies = [ Loading @@ -46,6 +54,8 @@ buildPythonPackage rec { luhn lxml pyyaml wrapt semgrep ]; nativeCheckInputs = [ Loading @@ -53,7 +63,16 @@ buildPythonPackage rec { pytestCheckHook ]; disabledTestPaths = [ # pinning tests highly sensitive to semgrep version "tests/unit/plugins/test_semgrep.py" ]; preCheck = '' # pinning test highly sensitive to semgrep version substituteInPlace tests/unit/test_main.py \ --replace-fail '("--ast", 421),' "" # Some tests need the binary available in PATH export PATH=$out/bin:$PATH ''; Loading Loading
pkgs/tools/security/semgrep/common.nix→pkgs/development/python-modules/semgrep/common.nix +0 −0 File moved. View file
pkgs/tools/security/semgrep/default.nix→pkgs/development/python-modules/semgrep/default.nix +4 −3 Original line number Diff line number Diff line { lib , callPackage , fetchFromGitHub , semgrep-core , buildPythonApplication , buildPythonPackage , pythonPackages , pytestCheckHook Loading @@ -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 { Loading Loading @@ -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; }; Loading
pkgs/tools/security/semgrep/semgrep-core.nix→pkgs/development/python-modules/semgrep/semgrep-core.nix +0 −0 File moved. View file
pkgs/tools/security/semgrep/update.sh→pkgs/development/python-modules/semgrep/update.sh +0 −0 File moved. View file
pkgs/development/python-modules/whispers/default.nix +19 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,8 @@ pytestCheckHook, pythonOlder, pyyaml, wrapt, semgrep, setuptools, }: Loading @@ -35,6 +37,12 @@ buildPythonPackage rec { --replace-fail '"pytest-runner"' "" ''; pythonRelaxDeps = [ "lxml" "pyyaml" "semgrep" ]; build-system = [ setuptools ]; dependencies = [ Loading @@ -46,6 +54,8 @@ buildPythonPackage rec { luhn lxml pyyaml wrapt semgrep ]; nativeCheckInputs = [ Loading @@ -53,7 +63,16 @@ buildPythonPackage rec { pytestCheckHook ]; disabledTestPaths = [ # pinning tests highly sensitive to semgrep version "tests/unit/plugins/test_semgrep.py" ]; preCheck = '' # pinning test highly sensitive to semgrep version substituteInPlace tests/unit/test_main.py \ --replace-fail '("--ast", 421),' "" # Some tests need the binary available in PATH export PATH=$out/bin:$PATH ''; Loading