lol

detect-secrets: 0.12.4 -> 0.14.3

authored by

Fabian Affolter and committed by
Jonathan Ringer
3117287a 04eab02b

+38 -14
+38 -14
pkgs/development/tools/detect-secrets/default.nix
··· 1 - { lib, buildPythonApplication, fetchFromGitHub, isPy27, pyyaml, unidiff, configparser, enum34, future, functools32, mock, pytest }: 1 + { lib 2 + , buildPythonApplication 3 + , configparser 4 + , enum34 5 + , fetchFromGitHub 6 + , functools32 7 + , future 8 + , isPy27 9 + , mock 10 + , pyahocorasick 11 + , pytestCheckHook 12 + , pyyaml 13 + , requests 14 + , responses 15 + , unidiff 16 + }: 2 17 3 18 buildPythonApplication rec { 4 19 pname = "detect-secrets"; 5 - version = "0.12.4"; 20 + version = "0.14.3"; 21 + disabled = isPy27; 6 22 7 23 # PyPI tarball doesn't ship tests 8 24 src = fetchFromGitHub { 9 25 owner = "Yelp"; 10 - repo = "detect-secrets"; 26 + repo = pname; 11 27 rev = "v${version}"; 12 - sha256 = "01y5xd0irxxib4wnf5834gwa7ibb81h5y4dl8b26gyzgvm5zfpk1"; 28 + sha256 = "0c4hxih9ljmv0d3izq5idyspk5zci26gdb6lv9klwcshwrfkvxj0"; 13 29 }; 14 30 15 - propagatedBuildInputs = [ pyyaml ] 16 - ++ lib.optionals isPy27 [ configparser enum34 future functools32 ]; 31 + propagatedBuildInputs = [ 32 + pyyaml 33 + requests 34 + ]; 17 35 18 - checkInputs = [ mock pytest unidiff ]; 36 + checkInputs = [ 37 + mock 38 + pyahocorasick 39 + pytestCheckHook 40 + responses 41 + unidiff 42 + ]; 19 43 20 - # deselect tests which require git setup 21 - checkPhase = '' 22 - PYTHONPATH=$PWD:$PYTHONPATH pytest \ 23 - --deselect tests/main_test.py::TestMain \ 24 - --deselect tests/pre_commit_hook_test.py::TestPreCommitHook \ 25 - --deselect tests/core/baseline_test.py::TestInitializeBaseline 26 - ''; 44 + disabledTests = [ 45 + "TestMain" 46 + "TestPreCommitHook" 47 + "TestInitializeBaseline" 48 + ]; 49 + 50 + pythonImportsCheck = [ "detect_secrets" ]; 27 51 28 52 meta = with lib; { 29 53 description = "An enterprise friendly way of detecting and preventing secrets in code";