You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.1 KiB
66 lines
1.1 KiB
2 years ago
|
{ lib
|
||
2 years ago
|
, astroid
|
||
|
, beautifulsoup4
|
||
|
, buildPythonPackage
|
||
2 years ago
|
, fetchFromGitHub
|
||
2 years ago
|
, jproperties
|
||
|
, luhn
|
||
|
, lxml
|
||
|
, pytest-mock
|
||
|
, pytestCheckHook
|
||
|
, python-Levenshtein
|
||
|
, pythonOlder
|
||
|
, pyyaml
|
||
2 years ago
|
}:
|
||
|
|
||
2 years ago
|
buildPythonPackage rec {
|
||
2 years ago
|
pname = "whispers";
|
||
|
version = "1.5.3";
|
||
2 years ago
|
format = "setuptools";
|
||
|
|
||
|
disabled = pythonOlder "3.7";
|
||
2 years ago
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "Skyscanner";
|
||
|
repo = pname;
|
||
|
rev = version;
|
||
2 years ago
|
hash = "sha256-jruUGyoZCyMu015QKtlvfx5WRMfxo/eYUue9wUIWb6o=";
|
||
2 years ago
|
};
|
||
|
|
||
2 years ago
|
propagatedBuildInputs = [
|
||
2 years ago
|
astroid
|
||
|
beautifulsoup4
|
||
|
jproperties
|
||
|
luhn
|
||
|
lxml
|
||
|
python-Levenshtein
|
||
|
pyyaml
|
||
|
];
|
||
|
|
||
2 years ago
|
checkInputs = [
|
||
2 years ago
|
pytest-mock
|
||
|
pytestCheckHook
|
||
|
];
|
||
|
|
||
|
postPatch = ''
|
||
|
substituteInPlace setup.py \
|
||
|
--replace '"pytest-runner"' ""
|
||
|
'';
|
||
|
|
||
|
preCheck = ''
|
||
|
# Some tests need the binary available in PATH
|
||
|
export PATH=$out/bin:$PATH
|
||
|
'';
|
||
|
|
||
|
pythonImportsCheck = [
|
||
|
"whispers"
|
||
|
];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Tool to identify hardcoded secrets in static structured text";
|
||
|
homepage = "https://github.com/Skyscanner/whispers";
|
||
|
license = with licenses; [ asl20 ];
|
||
|
maintainers = with maintainers; [ fab ];
|
||
|
};
|
||
|
}
|