about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/gandi-cli/default.nix
blob: d7394ac94d88143e7b2e69a77070936f6f94a6a1 (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
{ lib
, buildPythonApplication
, click
, fetchFromGitHub
, ipy
, pyyaml
, requests
}:

buildPythonApplication rec {
  pname = "gandi-cli";
  version = "1.6";

  src = fetchFromGitHub {
    owner = "Gandi";
    repo = "gandi.cli";
    rev = version;
    sha256 = "sha256-KLeEbbzgqpmBjeTc5RYsFScym8xtMqVjU+H0lyDM0+o=";
  };

  propagatedBuildInputs = [
    click
    ipy
    pyyaml
    requests
  ];

  # Tests try to contact the actual remote API
  doCheck = false;
  pythonImportsCheck = [ "gandi" ];

  meta = with lib; {
    description = "Command-line interface to the public Gandi.net API";
    homepage = "https://cli.gandi.net/";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ ];
  };
}