mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
b8ce63432f
Diff: https://github.com/GitGuardian/ggshield/compare/refs/tags/v1.23.0...v1.24.0 Changelog: https://github.com/GitGuardian/ggshield/blob/1.24.0/CHANGELOG.md
86 lines
1.8 KiB
Nix
86 lines
1.8 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, git
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "ggshield";
|
|
version = "1.24.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GitGuardian";
|
|
repo = "ggshield";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-N0yokLsp6jRELIPu8w6gvD7V97xiKJl+kLQQB9h2mMY=";
|
|
};
|
|
|
|
pythonRelaxDeps = true;
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
pythonRelaxDepsHook
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
appdirs
|
|
charset-normalizer
|
|
click
|
|
cryptography
|
|
marshmallow
|
|
marshmallow-dataclass
|
|
oauthlib
|
|
platformdirs
|
|
pygitguardian
|
|
pyjwt
|
|
python-dotenv
|
|
pyyaml
|
|
requests
|
|
rich
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
git
|
|
] ++ (with python3.pkgs; [
|
|
jsonschema
|
|
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"
|
|
# Encoding issues
|
|
"test_file_decode_content"
|
|
"test_file_is_longer_than_does_not_read_utf8_file"
|
|
"test_file_is_longer_using_8bit_codec"
|
|
"test_generate_files_from_paths"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|