summary refs log tree commit diff
path: root/pkgs/tools/networking/gandi-cli/default.nix
blob: 2f95123ba21226915c89dffe222bfbc22dae234e (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
{ stdenv, pythonPackages, fetchFromGitHub }:

with pythonPackages;

buildPythonPackage rec {
  namePrefix = "";
  name = "gandi-cli-${version}";
  version = "0.18";

  src = fetchFromGitHub {
    sha256 = "045gnz345nfbi1g7j3gcyzrxrx3hcidaxzr05cb49rcr8nmqh1s3";
    rev = version;
    repo = "gandi.cli";
    owner = "Gandi";
  };

  propagatedBuildInputs = [ click ipy pyyaml requests ];

  doCheck = false;    # Tests try to contact the actual remote API

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