From f5ff5fac404cf705160458944edeed215150d8ab Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 11 Sep 2024 09:09:52 +0200 Subject: [PATCH 1/2] ggshield: set to Python 3.11 snapshottest doesn't support Python 3.12 yet --- pkgs/top-level/all-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c484627c1202..c9460e1b85b3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8024,7 +8024,9 @@ with pkgs; ggobi = callPackage ../tools/graphics/ggobi { }; - ggshield = callPackage ../tools/security/ggshield { }; + ggshield = callPackage ../tools/security/ggshield { + python3 = python311; + }; ghost = callPackage ../tools/security/ghost { }; From 0e2eaa000c48087b0b0aac6095484e02afa61c67 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 11 Sep 2024 09:12:26 +0200 Subject: [PATCH 2/2] ggshield: 1.29.0 -> 1.31.0 Diff: https://github.com/GitGuardian/ggshield/compare/refs/tags/v1.29.0...v1.31.0 Changelog: https://github.com/GitGuardian/ggshield/blob/1.31.0/CHANGELOG.md --- pkgs/tools/security/ggshield/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/ggshield/default.nix b/pkgs/tools/security/ggshield/default.nix index 1b874921cce7..af20cb3ff775 100644 --- a/pkgs/tools/security/ggshield/default.nix +++ b/pkgs/tools/security/ggshield/default.nix @@ -7,14 +7,14 @@ python3.pkgs.buildPythonApplication rec { pname = "ggshield"; - version = "1.29.0"; + version = "1.31.0"; pyproject = true; src = fetchFromGitHub { owner = "GitGuardian"; repo = "ggshield"; rev = "refs/tags/v${version}"; - hash = "sha256-x37FRSjhqV7LxD8VFSmVjg/FPlxsa4NEX6y7OEAniF4="; + hash = "sha256-ShczC0DvAO92apkNq5oyYRbkqGdqwl6vaCY1hn8O6so="; }; pythonRelaxDeps = true; @@ -70,6 +70,7 @@ python3.pkgs.buildPythonApplication rec { "test_check_git_dir" "test_does_not_fail_if_cache" # Encoding issues + "test_create_files_from_paths" "test_file_decode_content" "test_file_is_longer_than_does_not_read_utf8_file" "test_file_is_longer_using_8bit_codec"