21 buildPythonPackage rec {
26 disabled = pythonOlder "3.7";
28 src = fetchFromGitHub {
31 rev = "refs/tags/${version}";
32 hash = "sha256-tjDog8+oWTNuK1eK5qUEFspiilB0riUSTX5ugTIiP3M=";
36 substituteInPlace setup.py \
37 --replace-fail '"pytest-runner"' ""
46 build-system = [ setuptools ];
67 # pinning tests highly sensitive to semgrep version
68 "tests/unit/plugins/test_semgrep.py"
72 # pinning test highly sensitive to semgrep version
73 substituteInPlace tests/unit/test_main.py \
74 --replace-fail '("--ast", 421),' ""
76 # Some tests need the binary available in PATH
77 export PATH=$out/bin:$PATH
80 pythonImportsCheck = [ "whispers" ];
83 description = "Tool to identify hardcoded secrets in static structured text";
84 homepage = "https://github.com/adeptex/whispers";
85 changelog = "https://github.com/adeptex/whispers/releases/tag/${version}";
86 license = with licenses; [ asl20 ];
87 maintainers = with maintainers; [ fab ];
88 mainProgram = "whispers";