2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, click
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ipy
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "gandi-cli";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "1.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Gandi";
|
|
|
|
repo = "gandi.cli";
|
|
|
|
rev = version;
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "sha256-KLeEbbzgqpmBjeTc5RYsFScym8xtMqVjU+H0lyDM0+o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
ipy
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
# Tests try to contact the actual remote API
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "gandi" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Command-line interface to the public Gandi.net API";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gandi";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://cli.gandi.net/";
|
|
|
|
license = licenses.gpl3Plus;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|