ggshield: init at 1.18.0
This commit is contained in:
parent
00d240ed37
commit
ea230941cb
2 changed files with 80 additions and 0 deletions
78
pkgs/tools/security/ggshield/default.nix
Normal file
78
pkgs/tools/security/ggshield/default.nix
Normal file
|
@ -0,0 +1,78 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, git
|
||||
, python3
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "ggshield";
|
||||
version = "1.18.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "GitGuardian";
|
||||
repo = "ggshield";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-CWWgt2Ec8ChhH+nL6DkGqI3GsR52HforUYaaxSpKgCs=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = true;
|
||||
|
||||
nativeBuildInputs = with python3.pkgs; [
|
||||
pythonRelaxDepsHook
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
appdirs
|
||||
charset-normalizer
|
||||
click
|
||||
cryptography
|
||||
marshmallow
|
||||
marshmallow-dataclass
|
||||
oauthlib
|
||||
pygitguardian
|
||||
pyjwt
|
||||
python-dotenv
|
||||
pyyaml
|
||||
requests
|
||||
rich
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
git
|
||||
] ++ (with python3.pkgs; [
|
||||
pyfakefs
|
||||
pytest-mock
|
||||
pytest-voluptuous
|
||||
pytestCheckHook
|
||||
snapshottest
|
||||
vcrpy
|
||||
]);
|
||||
|
||||
pythonImportsCheck = [
|
||||
"ggshield"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Don't run functional tests
|
||||
"tests/functional/"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# No TLS certificate, no .git folder, etc.
|
||||
"test_cache_catches"
|
||||
"test_is_git_dir"
|
||||
"test_is_valid_git_commit_ref"
|
||||
"test_check_git_dir"
|
||||
"test_does_not_fail_if_cache"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool to find and fix various types of hardcoded secrets and infrastructure-as-code misconfigurations";
|
||||
homepage = "https://github.com/GitGuardian/ggshield";
|
||||
changelog = "https://github.com/GitGuardian/ggshield/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -8366,6 +8366,8 @@ with pkgs;
|
|||
|
||||
ggobi = callPackage ../tools/graphics/ggobi { };
|
||||
|
||||
ggshield = callPackage ../tools/security/ggshield { };
|
||||
|
||||
ghost = callPackage ../tools/security/ghost { };
|
||||
|
||||
ghostunnel = callPackage ../tools/networking/ghostunnel { };
|
||||
|
|
Loading…
Reference in a new issue