1{ lib
2, buildPythonApplication
3, click
4, fetchFromGitHub
5, ipy
6, pyyaml
7, requests
8}:
9
10buildPythonApplication rec {
11 pname = "gandi-cli";
12 version = "1.6";
13
14 src = fetchFromGitHub {
15 owner = "Gandi";
16 repo = "gandi.cli";
17 rev = version;
18 sha256 = "sha256-KLeEbbzgqpmBjeTc5RYsFScym8xtMqVjU+H0lyDM0+o=";
19 };
20
21 propagatedBuildInputs = [
22 click
23 ipy
24 pyyaml
25 requests
26 ];
27
28 # Tests try to contact the actual remote API
29 doCheck = false;
30 pythonImportsCheck = [ "gandi" ];
31
32 meta = with lib; {
33 description = "Command-line interface to the public Gandi.net API";
34 homepage = "https://cli.gandi.net/";
35 license = licenses.gpl3Plus;
36 maintainers = with maintainers; [ ];
37 };
38}