diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-09-22 15:12:23 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-09-22 15:12:23 +0200 |
commit | 60218ef0bccae93d65c967a4edc7c1f4cbcc3d86 (patch) | |
tree | 74c6fa5788ff4c3711efa71fbc8b5a61605342d3 /pkgs/tools/security/faraday-cli | |
parent | 787af490214e142ee836b959b560d12bd8a87272 (diff) |
faraday-cli: init at 2.0.2
Diffstat (limited to 'pkgs/tools/security/faraday-cli')
-rw-r--r-- | pkgs/tools/security/faraday-cli/default.nix | 46 |
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 ]; + }; +} |