nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 65 lines 1.2 kB view raw
1{ lib 2, astroid 3, beautifulsoup4 4, buildPythonPackage 5, fetchFromGitHub 6, jproperties 7, luhn 8, lxml 9, pytest-mock 10, pytestCheckHook 11, python-Levenshtein 12, pythonOlder 13, pyyaml 14}: 15 16buildPythonPackage rec { 17 pname = "whispers"; 18 version = "1.5.3"; 19 format = "setuptools"; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchFromGitHub { 24 owner = "Skyscanner"; 25 repo = pname; 26 rev = version; 27 hash = "sha256-jruUGyoZCyMu015QKtlvfx5WRMfxo/eYUue9wUIWb6o="; 28 }; 29 30 propagatedBuildInputs = [ 31 astroid 32 beautifulsoup4 33 jproperties 34 luhn 35 lxml 36 python-Levenshtein 37 pyyaml 38 ]; 39 40 checkInputs = [ 41 pytest-mock 42 pytestCheckHook 43 ]; 44 45 postPatch = '' 46 substituteInPlace setup.py \ 47 --replace '"pytest-runner"' "" 48 ''; 49 50 preCheck = '' 51 # Some tests need the binary available in PATH 52 export PATH=$out/bin:$PATH 53 ''; 54 55 pythonImportsCheck = [ 56 "whispers" 57 ]; 58 59 meta = with lib; { 60 description = "Tool to identify hardcoded secrets in static structured text"; 61 homepage = "https://github.com/Skyscanner/whispers"; 62 license = with licenses; [ asl20 ]; 63 maintainers = with maintainers; [ fab ]; 64 }; 65}