nixpkgs-suyu/pkgs/tools/networking/gandi-cli/default.nix

39 lines
717 B
Nix
Raw Normal View History

2021-01-19 08:11:04 +01:00
{ lib
, buildPythonApplication
, click
, fetchFromGitHub
, ipy
, pyyaml
, requests
}:
2018-11-30 16:16:28 +01:00
buildPythonApplication rec {
pname = "gandi-cli";
2021-01-19 08:11:04 +01:00
version = "1.6";
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=";
};
2021-01-19 08:11:04 +01:00
propagatedBuildInputs = [
click
ipy
pyyaml
requests
];
2021-01-19 08:11:04 +01:00
# Tests try to contact the actual remote API
doCheck = false;
pythonImportsCheck = [ "gandi" ];
meta = with lib; {
description = "Command-line interface to the public Gandi.net API";
homepage = "https://cli.gandi.net/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
};
}