summary refs log tree commit diff
path: root/pkgs/tools/networking/gandi-cli
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2016-05-03 18:25:57 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2016-05-03 18:28:23 +0200
commitbf8130684878747be7b1cc393f8aa147c500f14f (patch)
tree36514b692ee9d98a22ddf0b76ed8dc95d44e0e13 /pkgs/tools/networking/gandi-cli
parent6d55b2e9c0a8bd72cb4375c55a5789682cb96b1c (diff)
downloadnixpkgs-bf8130684878747be7b1cc393f8aa147c500f14f.tar
nixpkgs-bf8130684878747be7b1cc393f8aa147c500f14f.tar.gz
nixpkgs-bf8130684878747be7b1cc393f8aa147c500f14f.tar.bz2
nixpkgs-bf8130684878747be7b1cc393f8aa147c500f14f.tar.lz
nixpkgs-bf8130684878747be7b1cc393f8aa147c500f14f.tar.xz
nixpkgs-bf8130684878747be7b1cc393f8aa147c500f14f.tar.zst
nixpkgs-bf8130684878747be7b1cc393f8aa147c500f14f.zip
gandi-cli: pull out of python-packages.nix
Diffstat (limited to 'pkgs/tools/networking/gandi-cli')
-rw-r--r--pkgs/tools/networking/gandi-cli/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/networking/gandi-cli/default.nix b/pkgs/tools/networking/gandi-cli/default.nix
new file mode 100644
index 00000000000..2f95123ba21
--- /dev/null
+++ b/pkgs/tools/networking/gandi-cli/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, pythonPackages, fetchFromGitHub }:
+
+with pythonPackages;
+
+buildPythonPackage rec {
+  namePrefix = "";
+  name = "gandi-cli-${version}";
+  version = "0.18";
+
+  src = fetchFromGitHub {
+    sha256 = "045gnz345nfbi1g7j3gcyzrxrx3hcidaxzr05cb49rcr8nmqh1s3";
+    rev = version;
+    repo = "gandi.cli";
+    owner = "Gandi";
+  };
+
+  propagatedBuildInputs = [ click ipy pyyaml requests ];
+
+  doCheck = false;    # Tests try to contact the actual remote API
+
+  meta = with stdenv.lib; {
+    description = "Command-line interface to the public Gandi.net API";
+    homepage = http://cli.gandi.net/;
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ nckx ];
+  };
+}
+