about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/os/osc-cli/package.nix
blob: fc9db543b15810ea01672c47e2b66f86d3d6c28d (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
{
  lib
  , python3
  , fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
  pname = "osc-cli";
  version = "1.11.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "outscale";
    repo = "osc-cli";
    rev = "v${version}";
    hash = "sha256-7WXy+1NHwFvYmyi5xGfWpq/mbVGJ3WkgP5WQd5pvcC0=";
  };

  nativeBuildInputs = [
    python3.pkgs.setuptools
  ];

  propagatedBuildInputs = with python3.pkgs; [
    defusedxml
    fire
    requests
    typing-extensions
    xmltodict
  ];

  # Skipping tests as they require working access and secret keys
  doCheck = false;

  meta = with lib; {
    description = "Official Outscale CLI providing connectors to Outscale API";
    homepage = "https://github.com/outscale/osc-cli";
    license = licenses.bsd3;
    maintainers = with maintainers; [ nicolas-goudry ];
    mainProgram = "osc-cli";
  };
}