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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
717 B
Nix
Raw Normal View History

2021-01-19 07:11:04 +00:00
{ lib
, buildPythonApplication
, click
, fetchFromGitHub
, ipy
, pyyaml
, requests
}:
2018-11-30 15:16:28 +00:00
buildPythonApplication rec {
pname = "gandi-cli";
2021-01-19 07:11:04 +00:00
version = "1.6";
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=";
};
2021-01-19 07:11:04 +00:00
propagatedBuildInputs = [
click
ipy
pyyaml
requests
];
2021-01-19 07:11:04 +00: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; [ ];
};
}