From patchwork Mon Oct 14 11:43:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tanguy LE CARROUR X-Patchwork-Id: 15719 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8885D1759F; Mon, 14 Oct 2019 12:44:31 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 4146B17530 for ; Mon, 14 Oct 2019 12:44:31 +0100 (BST) Received: from localhost ([::1]:48074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJym6-0001EL-89 for patchwork@mira.cbaines.net; Mon, 14 Oct 2019 07:44:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51510) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJylh-0001DD-Eu for guix-patches@gnu.org; Mon, 14 Oct 2019 07:44:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJyle-0006a7-Up for guix-patches@gnu.org; Mon, 14 Oct 2019 07:44:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57641) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJyld-0006ZH-QM for guix-patches@gnu.org; Mon, 14 Oct 2019 07:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iJyld-0004h8-Nn for guix-patches@gnu.org; Mon, 14 Oct 2019 07:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37613] [PATCH] gnu: Add python-httpie. References: <20191004065520.tcuz74tsjgqfbh6q@rafflesia> In-Reply-To: <20191004065520.tcuz74tsjgqfbh6q@rafflesia> Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 14 Oct 2019 11:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37613 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37613@debbugs.gnu.org Received: via spool by 37613-submit@debbugs.gnu.org id=B37613.157105340517996 (code B ref 37613); Mon, 14 Oct 2019 11:44:01 +0000 Received: (at 37613) by debbugs.gnu.org; 14 Oct 2019 11:43:25 +0000 Received: from localhost ([127.0.0.1]:38229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJyl3-0004gB-Cl for submit@debbugs.gnu.org; Mon, 14 Oct 2019 07:43:25 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:49505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJyl1-0004g0-Kp for 37613@debbugs.gnu.org; Mon, 14 Oct 2019 07:43:24 -0400 X-Originating-IP: 176.159.32.89 Received: from localhost (176-159-32-89.abo.bbox.fr [176.159.32.89]) (Authenticated sender: tanguy@bioneland.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 75F9360008 for <37613@debbugs.gnu.org>; Mon, 14 Oct 2019 11:43:21 +0000 (UTC) Date: Mon, 14 Oct 2019 13:43:20 +0200 From: Tanguy Le Carrour Message-ID: <20191014114320.fmiev2vxisikagf7@rafflesia> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20180716 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From 13062545e9df7f9cab728f6ee17b572a88a11e31 Mon Sep 17 00:00:00 2001 From: Tanguy Le Carrour Date: Fri, 4 Oct 2019 08:44:59 +0200 Subject: [PATCH] gnu: Add python-httpie. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-web.scm (python-httpie): New public variable. --- gnu/packages/python-web.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index ffef3319f7..b980b83a70 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -30,6 +30,7 @@ ;;; Copyright © 2019 Vagrant Cascadian ;;; Copyright © 2019 Brendan Tildesley ;;; Copyright © 2019 Pierre Langlois +;;; Copyright © 2019 Tanguy Le Carrour ;;; ;;; This file is part of GNU Guix. ;;; @@ -303,6 +304,34 @@ other HTTP libraries.") (define-public python2-httplib2 (package-with-python2 python-httplib2)) +(define-public python-httpie + (package + (name "python-httpie") + (version "1.0.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "httpie" version)) + (sha256 + (base32 + "103fcigpxf4nqmrdqjnyz7d9n4n16906slwmmqqc0gkxv8hnw6vd")))) + (build-system python-build-system) + (arguments + ;; The tests attempt to access external web servers, so we cannot run them. + '(#:tests? #f)) + (propagated-inputs + `(("python-colorama" ,python-colorama) + ("python-pygments" ,python-pygments) + ("python-requests" ,python-requests))) + (home-page "https://httpie.org/") + (synopsis "cURL-like tool for humans") + (description + "A command line HTTP client with an intuitive UI, JSON support, +syntax highlighting, wget-like downloads, plugins, and more. It consists of +a single http command designed for painless debugging and interaction with +HTTP servers, RESTful APIs, and web services.") + (license license:bsd-3))) + (define-public python-html2text (package (name "python-html2text")