uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
65
pkgs/development/python-modules/whispers/default.nix
Normal file
65
pkgs/development/python-modules/whispers/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{ lib
|
||||
, astroid
|
||||
, beautifulsoup4
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, jproperties
|
||||
, luhn
|
||||
, lxml
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, python-Levenshtein
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "whispers";
|
||||
version = "1.5.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Skyscanner";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-jruUGyoZCyMu015QKtlvfx5WRMfxo/eYUue9wUIWb6o=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
astroid
|
||||
beautifulsoup4
|
||||
jproperties
|
||||
luhn
|
||||
lxml
|
||||
python-Levenshtein
|
||||
pyyaml
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue