Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 78 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{ lib, buildPythonPackage, fetchFromGitHub, gibberish-detector, mock, pkgs, pyahocorasick, pytestCheckHook, pythonOlder, pyyaml, requests, responses, setuptools, unidiff,}:
buildPythonPackage rec { pname = "bc-detect-secrets"; version = "1.5.44"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "bridgecrewio"; repo = "detect-secrets"; tag = version; hash = "sha256-cEhZo/HfCp6Cpx2zEX7THQQJH264NJvoCRrM+ci3RrE="; };
build-system = [ setuptools ];
dependencies = [ pyyaml requests unidiff ];
optional-dependencies = { word_list = [ pyahocorasick ]; gibberish = [ gibberish-detector ]; };
nativeCheckInputs = [ mock pkgs.gitMinimal pytestCheckHook responses ] ++ lib.flatten (builtins.attrValues optional-dependencies);
preCheck = '' export HOME=$(mktemp -d); '';
disabledTests = [ # Tests are failing for various reasons (missing git repo, missing test data, etc.) "test_baseline_filters_out_known_secrets" "test_make_decisions" "test_saves_to_baseline" "test_start_halfway" "TestCreate" "TestDiff" "TestGetFilesToScan" "TestLineNumberChanges" "TestModifiesBaselineFromVersionChange" ];
pythonImportsCheck = [ "detect_secrets" ];
meta = with lib; { description = "Tool to detect secrets in the code"; homepage = "https://github.com/bridgecrewio/detect-secrets"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; };}