about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-09-22 23:20:36 +0200
committerGitHub <noreply@github.com>2021-09-22 23:20:36 +0200
commita872b5451174017d1eb590e98c69bee8b7f827aa (patch)
tree1536ef195ae566f492b41c73e8cae2b6a2410394 /pkgs/tools
parent095d2bbaf8e4d3b4bc76e519dbf8ddf683f17de9 (diff)
parent60218ef0bccae93d65c967a4edc7c1f4cbcc3d86 (diff)
Merge pull request #138944 from fabaff/faraday-cli
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/security/faraday-cli/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/tools/security/faraday-cli/default.nix b/pkgs/tools/security/faraday-cli/default.nix
new file mode 100644
index 0000000000000..c220fe4ded0fb
--- /dev/null
+++ b/pkgs/tools/security/faraday-cli/default.nix
@@ -0,0 +1,46 @@
+{ lib
+, fetchFromGitHub
+, python3
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "faraday-cli";
+  version = "2.0.2";
+
+  disabled = python3.pythonOlder "3.7";
+
+  src = fetchFromGitHub {
+    owner = "infobyte";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1jq8sim0b6k830lv1qzbrd1mx0nc2x1jq24fbama76gzqlb2axi7";
+  };
+
+  propagatedBuildInputs = with python3.pkgs; [
+    click
+    colorama
+    faraday-plugins
+    jsonschema
+    pyyaml
+    simple-rest-client
+    tabulate
+    validators
+    spinners
+    termcolor
+    cmd2
+    log-symbols
+    arrow
+  ];
+
+  # Tests requires credentials
+  doCheck = false;
+
+  pythonImportsCheck = [ "faraday_cli" ];
+
+  meta = with lib; {
+    description = "Command Line Interface for Faraday";
+    homepage = "https://github.com/infobyte/faraday-cli";
+    license = with licenses; [ gpl3Only ];
+    maintainers = with maintainers; [ fab ];
+  };
+}