2021-01-19 07:11:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, click
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ipy
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
|
|
|
}:
|
2016-05-03 16:25:57 +00:00
|
|
|
|
2018-11-30 15:16:28 +00:00
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "gandi-cli";
|
2021-01-19 07:11:04 +00:00
|
|
|
version = "1.6";
|
2016-05-03 16:25:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Gandi";
|
2018-11-30 15:16:28 +00:00
|
|
|
repo = "gandi.cli";
|
|
|
|
rev = version;
|
2021-01-19 07:11:04 +00:00
|
|
|
sha256 = "sha256-KLeEbbzgqpmBjeTc5RYsFScym8xtMqVjU+H0lyDM0+o=";
|
2016-05-03 16:25:57 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:11:04 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
ipy
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
];
|
2016-05-03 16:25:57 +00:00
|
|
|
|
2021-01-19 07:11:04 +00:00
|
|
|
# Tests try to contact the actual remote API
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "gandi" ];
|
2016-05-03 16:25:57 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-05-03 16:25:57 +00:00
|
|
|
description = "Command-line interface to the public Gandi.net API";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://cli.gandi.net/";
|
2016-05-03 16:25:57 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-01-18 20:23:49 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2016-05-03 16:25:57 +00:00
|
|
|
};
|
|
|
|
}
|