From bf8130684878747be7b1cc393f8aa147c500f14f Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 3 May 2016 18:25:57 +0200 Subject: [PATCH] gandi-cli: pull out of python-packages.nix --- pkgs/tools/networking/gandi-cli/default.nix | 28 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ pkgs/top-level/python-packages.nix | 19 -------------- 3 files changed, 30 insertions(+), 19 deletions(-) create mode 100644 pkgs/tools/networking/gandi-cli/default.nix 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 ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ec2523b975a..446501c094b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1594,6 +1594,8 @@ in galen = callPackage ../development/tools/galen {}; + gandi-cli = callPackage ../tools/networking/gandi-cli { }; + garmin-plugin = callPackage ../applications/misc/garmin-plugin {}; garmintools = callPackage ../development/libraries/garmintools {}; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e664ab56703..8edba3627e4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5785,25 +5785,6 @@ in modules // { }; }; - gandi-cli = buildPythonPackage rec { - name = "gandi-cli-${version}"; - version = "0.18"; - src = pkgs.fetchFromGitHub { - sha256 = "045gnz345nfbi1g7j3gcyzrxrx3hcidaxzr05cb49rcr8nmqh1s3"; - rev = version; - repo = "gandi.cli"; - owner = "Gandi"; - }; - propagatedBuildInputs = with self; [ click ipy pyyaml requests ]; - doCheck = false; # Tests try to contact the actual remote API - meta = { - homepage = http://cli.gandi.net/; - description = "Command-line interface to the public Gandi.net API"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ nckx ]; - }; - }; - gateone = buildPythonPackage rec { name = "gateone-1.2-0d57c3"; disabled = ! isPy27;