2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, isPy3k
|
|
|
|
|
|
|
|
# pythonPackages
|
|
|
|
, GitPython
|
|
|
|
, pbr
|
|
|
|
, pyyaml
|
|
|
|
, six
|
|
|
|
, stevedore
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bandit";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "a81b00b5436e6880fa8ad6799bc830e02032047713cbb143a12939ac67eb756c";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
GitPython
|
|
|
|
pbr
|
|
|
|
pyyaml
|
|
|
|
six
|
|
|
|
stevedore
|
|
|
|
];
|
|
|
|
|
|
|
|
# Framework is Tox, tox performs 'pip install' inside the virtual-env
|
|
|
|
# and this requires Network Connectivity
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Security oriented static analyser for python code";
|
|
|
|
homepage = "https://bandit.readthedocs.io/en/latest/";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
kamadorueda
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|