nixpkgs/pkgs/development/python-modules/bandit/default.nix

45 lines
813 B
Nix
Raw Normal View History

2019-12-28 09:05:35 +00:00
{ buildPythonPackage
, fetchPypi
, lib
, isPy3k
# pythonPackages
, GitPython
, pbr
, pyyaml
, six
, stevedore
}:
buildPythonPackage rec {
pname = "bandit";
version = "1.6.3";
2019-12-28 09:05:35 +00:00
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "d02dfe250f4aa2d166c127ad81d192579e2bfcdb8501717c0e2005e35a6bcf60";
2019-12-28 09:05:35 +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
];
};
}