depot/third_party/nixpkgs/pkgs/development/tools/detect-secrets/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

58 lines
1 KiB
Nix

{ lib
, buildPythonApplication
, configparser
, enum34
, fetchFromGitHub
, functools32
, future
, isPy27
, mock
, pyahocorasick
, pytestCheckHook
, pyyaml
, requests
, responses
, unidiff
}:
buildPythonApplication rec {
pname = "detect-secrets";
version = "0.14.3";
disabled = isPy27;
# PyPI tarball doesn't ship tests
src = fetchFromGitHub {
owner = "Yelp";
repo = pname;
rev = "v${version}";
sha256 = "0c4hxih9ljmv0d3izq5idyspk5zci26gdb6lv9klwcshwrfkvxj0";
};
propagatedBuildInputs = [
pyyaml
requests
];
checkInputs = [
mock
pyahocorasick
pytestCheckHook
responses
unidiff
];
disabledTests = [
"TestMain"
"TestPreCommitHook"
"TestInitializeBaseline"
];
pythonImportsCheck = [ "detect_secrets" ];
meta = with lib; {
description = "An enterprise friendly way of detecting and preventing secrets in code";
homepage = "https://github.com/Yelp/detect-secrets";
license = licenses.asl20;
maintainers = [ maintainers.marsam ];
};
}