summary refs log tree commit diff
path: root/pkgs/tools/security/faraday-cli/default.nix
blob: c220fe4ded0fb0b581992434aeabae45987549cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 ];
  };
}