1{ buildPythonPackage 2, fetchPypi 3, lib 4, isPy3k 5 6# pythonPackages 7, GitPython 8, pbr 9, pyyaml 10, six 11, stevedore 12}: 13 14buildPythonPackage rec { 15 pname = "bandit"; 16 version = "1.7.1"; 17 disabled = !isPy3k; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "a81b00b5436e6880fa8ad6799bc830e02032047713cbb143a12939ac67eb756c"; 22 }; 23 24 propagatedBuildInputs = [ 25 GitPython 26 pbr 27 pyyaml 28 six 29 stevedore 30 ]; 31 32 # Framework is Tox, tox performs 'pip install' inside the virtual-env 33 # and this requires Network Connectivity 34 doCheck = false; 35 36 meta = { 37 description = "Security oriented static analyser for python code"; 38 homepage = "https://bandit.readthedocs.io/en/latest/"; 39 license = lib.licenses.asl20; 40 maintainers = with lib.maintainers; [ 41 kamadorueda 42 ]; 43 }; 44}