summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Amado <kamadorueda@gmail.com>2019-12-28 04:05:35 -0500
committerKevin Amado <kamadorueda@gmail.com>2020-01-03 17:56:41 -0500
commitff892ee1f063b4696a6a94983e0e986509e3cbf3 (patch)
tree4410c05f2946f32b604444e509c0db2201491f76
parent1da859459600614bc0982fdbdab1ce721e401177 (diff)
pythonPackages.bandit: init at 1.6.2
-rw-r--r--pkgs/development/python-modules/bandit/default.nix44
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bandit/default.nix b/pkgs/development/python-modules/bandit/default.nix
new file mode 100644
index 000000000000..64ef8ec53fa5
--- /dev/null
+++ b/pkgs/development/python-modules/bandit/default.nix
@@ -0,0 +1,44 @@
+{ buildPythonPackage
+, fetchPypi
+, lib
+, isPy3k
+
+# pythonPackages
+, GitPython
+, pbr
+, pyyaml
+, six
+, stevedore
+}:
+
+buildPythonPackage rec {
+ pname = "bandit";
+ version = "1.6.2";
+ disabled = !isPy3k;
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "0rb034c99pyhb4a60z7f2kz40cjydhm8m9v2blaal1rmhlam7rs1";
+ };
+
+ 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
+ ];
+ };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index e7e195673080..759d3ecf0e21 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -1670,6 +1670,8 @@ in {
babelfish = callPackage ../development/python-modules/babelfish {};
+ bandit = callPackage ../development/python-modules/bandit {};
+
basiciw = callPackage ../development/python-modules/basiciw {
inherit (pkgs) gcc wirelesstools;
};