Unverified Commit 9276413a authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #308862 from fabaff/ggshield-bump

ggshield: 1.25.0 -> 1.27.0
parents fe25d5d5 3e7b571b
Loading
Loading
Loading
Loading
+28 −26
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, git
, python3
{
  lib,
  fetchFromGitHub,
  git,
  python3,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "ggshield";
  version = "1.25.0";
  version = "1.27.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "GitGuardian";
    repo = "ggshield";
    rev = "refs/tags/v${version}";
    hash = "sha256-D6+0ZYuOiCy5LonP1Ob7PlWmBXvLwU3PODOT6F+70HY=";
    hash = "sha256-esrDJar9J7V0ZIupfyURFWeGigV04Kxo06o/jMz17Fk=";
  };

  pythonRelaxDeps = true;

  nativeBuildInputs = with python3.pkgs; [
    pythonRelaxDepsHook
    setuptools
  ];
  build-system = with python3.pkgs; [ setuptools ];

  nativeBuildInputs = with python3.pkgs; [ pythonRelaxDepsHook ];

  propagatedBuildInputs = with python3.pkgs; [
  dependencies = with python3.pkgs; [
    appdirs
    charset-normalizer
    click
@@ -40,9 +40,9 @@ python3.pkgs.buildPythonApplication rec {
    rich
  ];

  nativeCheckInputs = [
    git
  ] ++ (with python3.pkgs; [
  nativeCheckInputs =
    [ git ]
    ++ (with python3.pkgs; [
      jsonschema
      pyfakefs
      pytest-mock
@@ -52,13 +52,15 @@ python3.pkgs.buildPythonApplication rec {
      vcrpy
    ]);

  pythonImportsCheck = [
    "ggshield"
  ];
  pythonImportsCheck = [ "ggshield" ];

  disabledTestPaths = [
    # Don't run functional tests
    "tests/functional/"
    "tests/unit/cmd/honeytoken"
    "tests/unit/cmd/iac"
    "tests/unit/cmd/sca/"
    "tests/unit/cmd/scan/"
  ];

  disabledTests = [
@@ -77,10 +79,10 @@ python3.pkgs.buildPythonApplication rec {

  meta = with lib; {
    description = "Tool to find and fix various types of hardcoded secrets and infrastructure-as-code misconfigurations";
    mainProgram = "ggshield";
    homepage = "https://github.com/GitGuardian/ggshield";
    changelog = "https://github.com/GitGuardian/ggshield/blob/${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
    mainProgram = "ggshield";
  };
}