8 python3.pkgs.buildPythonApplication rec {
13 src = fetchFromGitHub {
14 owner = "GitGuardian";
16 rev = "refs/tags/v${version}";
17 hash = "sha256-qvvCBJ56wC56p6tOCb5hh+J7Y/Hec/YgDKNmDbbWNig=";
20 pythonRelaxDeps = true;
22 build-system = with python3.pkgs; [ setuptools ];
25 dependencies = with python3.pkgs; [
44 ++ (with python3.pkgs; [
54 pythonImportsCheck = [ "ggshield" ];
57 # Don't run functional tests
59 "tests/unit/cmd/honeytoken"
62 "tests/unit/cmd/scan/"
66 # No TLS certificate, no .git folder, etc.
69 "test_is_valid_git_commit_ref"
71 "test_does_not_fail_if_cache"
73 "test_create_files_from_paths"
74 "test_file_decode_content"
75 "test_file_is_longer_than_does_not_read_utf8_file"
76 "test_file_is_longer_using_8bit_codec"
77 "test_generate_files_from_paths"
81 description = "Tool to find and fix various types of hardcoded secrets and infrastructure-as-code misconfigurations";
82 homepage = "https://github.com/GitGuardian/ggshield";
83 changelog = "https://github.com/GitGuardian/ggshield/blob/${version}/CHANGELOG.md";
84 license = licenses.mit;
85 maintainers = with maintainers; [ fab ];
86 mainProgram = "ggshield";