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