Files
nixpkgs/pkgs/tools/networking/gandi-cli/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
754 B
Nix

{
lib,
buildPythonApplication,
click,
fetchFromGitHub,
ipy,
pyyaml,
requests,
}:
buildPythonApplication rec {
pname = "gandi-cli";
version = "1.6";
format = "setuptools";
src = fetchFromGitHub {
owner = "Gandi";
repo = "gandi.cli";
rev = version;
sha256 = "sha256-KLeEbbzgqpmBjeTc5RYsFScym8xtMqVjU+H0lyDM0+o=";
};
propagatedBuildInputs = [
click
ipy
pyyaml
requests
];
# Tests try to contact the actual remote API
doCheck = false;
pythonImportsCheck = [ "gandi" ];
meta = {
description = "Command-line interface to the public Gandi.net API";
mainProgram = "gandi";
homepage = "https://cli.gandi.net/";
license = lib.licenses.gpl3Plus;
maintainers = [ ];
};
}