forked from mirrors/nixpkgs
45 lines
813 B
Nix
45 lines
813 B
Nix
{ buildPythonPackage
|
|
, fetchPypi
|
|
, lib
|
|
, isPy3k
|
|
|
|
# pythonPackages
|
|
, GitPython
|
|
, pbr
|
|
, pyyaml
|
|
, six
|
|
, stevedore
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bandit";
|
|
version = "1.7.0";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "8a4c7415254d75df8ff3c3b15cfe9042ecee628a1e40b44c15a98890fbfc2608";
|
|
};
|
|
|
|
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
|
|
];
|
|
};
|
|
}
|