From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2jV7-0006sA-3n for guix-patches@gnu.org; Wed, 19 Sep 2018 16:55:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2jV1-0008DV-J9 for guix-patches@gnu.org; Wed, 19 Sep 2018 16:55:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:41814) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g2jV0-0008CM-5W for guix-patches@gnu.org; Wed, 19 Sep 2018 16:55:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g2jV0-0007ry-2n for guix-patches@gnu.org; Wed, 19 Sep 2018 16:55:02 -0400 Subject: [bug#32775] [PATCH] gnu: Add gandi.cli. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2jUP-0006XB-3t for guix-patches@gnu.org; Wed, 19 Sep 2018 16:54:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2jUL-0007iu-Or for guix-patches@gnu.org; Wed, 19 Sep 2018 16:54:23 -0400 Received: from tobias.gr ([2001:470:cc92::1]:42288) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g2jUH-0007ZB-Va for guix-patches@gnu.org; Wed, 19 Sep 2018 16:54:19 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 1094ac74 for ; Wed, 19 Sep 2018 20:54:08 +0000 (UTC) Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id e7fcf389 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Wed, 19 Sep 2018 20:54:06 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Wed, 19 Sep 2018 22:53:47 +0200 Message-Id: <20180919205347.14375-1-me@tobias.gr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32775@debbugs.gnu.org * gnu/packages/networking.scm (gandi.cli): New public variable. --- Don't judge me. gnu/packages/networking.scm | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index abc616de3..f30d5a8da 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -87,6 +87,7 @@ #:use-module (gnu packages perl-check) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages qt) #:use-module (gnu packages readline) #:use-module (gnu packages ssh) @@ -673,6 +674,55 @@ send out a ping packet and move on to the next target in a round-robin fashion.") (license license:expat))) +(define-public gandi.cli + (package + (name "gandi.cli") + (version "1.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri name version)) + (sha256 + (base32 "0vfzkw1avybjkf6fwqpf5m4kjz4c0qkkmj62f3jd0zx00vh5ly1d")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'embed-store-file-names + (lambda _ + (substitute* (list "gandi/cli/modules/cert.py" + "gandi/cli/tests/commands/test_certificate.py") + (("openssl") (which "openssl"))) + #t)) + (add-after 'install 'install-documentation + ;; The included man page may be outdated but we install it anyway, + ;; since it's mentioned in 'gandi --help' and better than nothing. + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (man1 (string-append out "/share/man/man1"))) + (mkdir-p man1) + (with-output-to-file (string-append man1 "/gandi.1") + (lambda _ + (invoke "rst2man.py" "gandicli.man.rst"))) + #t)))))) + (native-inputs + `(("python-docutils" ,python-docutils) ; for rst2man.py + ("python-pytest-cov" ,python-pytest-cov) + ("python-tox" ,python-tox))) + (inputs + `(("openssl" ,openssl) + ("python-click" ,python-click) + ("python-ipy" ,python-ipy) + ("python-pyyaml" ,python-pyyaml) + ("python-requests" ,python-requests))) + (home-page "https://cli.gandi.net") + (synopsis "Command-line interface to the Gandi.net API") + (description + "This package provides a command-line client (@command{gandi}) to buy, +manage, and delete Internet resources from Gandi.net such as domain names, +virtual machines, and certificates.") + (license license:gpl3+))) + (define-public httping (package (name "httping") -- 2.18.0