GNU bug report logs - #37613
[PATCH 0/1] gnu: Add python-httpie.

Previous Next

Package: guix-patches;

Reported by: Tanguy Le Carrour <tanguy <at> bioneland.org>

Date: Fri, 4 Oct 2019 06:56:02 UTC

Severity: normal

Tags: patch

Done: Oleg Pykhalov <go.wigust <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37613 in the body.
You can then email your comments to 37613 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#37613; Package guix-patches. (Fri, 04 Oct 2019 06:56:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tanguy Le Carrour <tanguy <at> bioneland.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 04 Oct 2019 06:56:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: Guix <guix-patches <at> gnu.org>
Subject: [PATCH 0/1] gnu: Add python-httpie.
Date: Fri, 4 Oct 2019 08:55:20 +0200
Make the commands `http` available.

Warning: The tests attempt to access external web servers,
so we cannot run them.

-- 
Tanguy




Information forwarded to guix-patches <at> gnu.org:
bug#37613; Package guix-patches. (Fri, 04 Oct 2019 06:58:01 GMT) Full text and rfc822 format available.

Message #8 received at 37613 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37613 <at> debbugs.gnu.org
Subject: [PATCH 1/1] gnu: Add python-httpie.
Date: Fri, 4 Oct 2019 08:57:35 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/plain, inline)]
From 8a60be6eb9ee4e17dc4fbc19ada22c7993841b26 Mon Sep 17 00:00:00 2001
From: "tanguy <at> bioneland.org" <tanguy <at> bioneland.org>
Date: Fri, 4 Oct 2019 08:44:59 +0200
Subject: [PATCH] gnu: Add python-httpie.

---
 gnu/packages/python-web.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index e37ae94e18..b7d3b0aa73 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -30,6 +30,7 @@
 ;;; Copyright © 2019 Vagrant Cascadian <vagrant <at> debian.org>
 ;;; Copyright © 2019 Brendan Tildesley <mail <at> brendan.scot>
 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois <at> gmx.com>
+;;; Copyright © 2019 Tanguy Le Carrour <tanguy <at> bioneland.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -303,6 +304,32 @@ 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 "http://httpie.org/")
+    (synopsis
+     "HTTPie - a CLI, cURL-like tool for humans")
+    (description
+     "HTTPie - a CLI, cURL-like tool for humans.")
+    (license license:bsd-3)))
+
 (define-public python-html2text
   (package
     (name "python-html2text")
-- 
2.23.0


Information forwarded to guix-patches <at> gnu.org:
bug#37613; Package guix-patches. (Mon, 14 Oct 2019 09:57:02 GMT) Full text and rfc822 format available.

Message #11 received at 37613 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37613 <at> debbugs.gnu.org
Subject: Updating commit messages
Date: Mon, 14 Oct 2019 11:56:07 +0200
Based on Mathieu’s suggestions [1], I'll update this patch and
improve commit message and description.
Stay tuned! :-)

[1]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37598#35

-- 
Tanguy




Information forwarded to guix-patches <at> gnu.org:
bug#37613; Package guix-patches. (Mon, 14 Oct 2019 11:44:01 GMT) Full text and rfc822 format available.

Message #14 received at 37613 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37613 <at> debbugs.gnu.org
Subject: [PATCH] gnu: Add python-httpie.
Date: Mon, 14 Oct 2019 13:43:20 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/plain, inline)]
From 13062545e9df7f9cab728f6ee17b572a88a11e31 Mon Sep 17 00:00:00 2001
From: Tanguy Le Carrour <tanguy <at> bioneland.org>
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 <vagrant <at> debian.org>
 ;;; Copyright © 2019 Brendan Tildesley <mail <at> brendan.scot>
 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois <at> gmx.com>
+;;; Copyright © 2019 Tanguy Le Carrour <tanguy <at> bioneland.org>
 ;;;
 ;;; 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")
-- 
2.23.0


Information forwarded to guix-patches <at> gnu.org:
bug#37613; Package guix-patches. (Thu, 17 Oct 2019 20:15:02 GMT) Full text and rfc822 format available.

Message #17 received at 37613 <at> debbugs.gnu.org (full text, mbox):

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: Tanguy Le Carrour <tanguy <at> bioneland.org>
Cc: 37613 <at> debbugs.gnu.org
Subject: Re: [bug#37613] [PATCH] gnu: Add python-httpie.
Date: Thu, 17 Oct 2019 23:13:57 +0300
[Message part 1 (text/plain, inline)]
Hello,

Thank you for packaging this tool!

Tanguy Le Carrour <tanguy <at> bioneland.org> writes:

> From 13062545e9df7f9cab728f6ee17b572a88a11e31 Mon Sep 17 00:00:00 2001
> From: Tanguy Le Carrour <tanguy <at> bioneland.org>
> 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 <vagrant <at> debian.org>
>  ;;; Copyright © 2019 Brendan Tildesley <mail <at> brendan.scot>
>  ;;; Copyright © 2019 Pierre Langlois <pierre.langlois <at> gmx.com>
> +;;; Copyright © 2019 Tanguy Le Carrour <tanguy <at> bioneland.org>
>  ;;;
>  ;;; 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")

[…]

LGTM.  

What do you think about naming the package “httpie” instead, because
it's intended to run by calling ‘httpie’ command as in ‘youtube-dl’
package?  I could change the name if you don't mind and push it.

Regards,
Oleg.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#37613; Package guix-patches. (Fri, 18 Oct 2019 12:51:02 GMT) Full text and rfc822 format available.

Message #20 received at 37613 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: Oleg Pykhalov <go.wigust <at> gmail.com>
Cc: 37613 <at> debbugs.gnu.org
Subject: Re: [bug#37613] [PATCH] gnu: Add python-httpie.
Date: Fri, 18 Oct 2019 14:50:15 +0200
Hi Oleg!


Le 10/17, Oleg Pykhalov a écrit :
> What do you think about naming the package “httpie” instead, because
> it's intended to run by calling ‘httpie’ command as in ‘youtube-dl’
> package?  I could change the name if you don't mind and push it.

I have no opinion on this! I package cookiecutter as
`python-cookiecutter`, so I did the same with httpie.
The only problem is that the binary is actually called `http`.

Just do whatever you think is best!

Should I consider doing the same for the package `python-poetry` I've submitted?!

Regards,

-- 
Tanguy




Information forwarded to guix-patches <at> gnu.org:
bug#37613; Package guix-patches. (Fri, 18 Oct 2019 15:11:02 GMT) Full text and rfc822 format available.

Message #23 received at 37613 <at> debbugs.gnu.org (full text, mbox):

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: Tanguy Le Carrour <tanguy <at> bioneland.org>
Cc: 37613 <at> debbugs.gnu.org, 37613-done <at> debbugs.gnu.org
Subject: Re: [bug#37613] [PATCH] gnu: Add python-httpie.
Date: Fri, 18 Oct 2019 18:09:52 +0300
[Message part 1 (text/plain, inline)]
Tanguy Le Carrour <tanguy <at> bioneland.org> writes:

> Hi Oleg!
>
>
> Le 10/17, Oleg Pykhalov a écrit :
>> What do you think about naming the package “httpie” instead, because
>> it's intended to run by calling ‘httpie’ command as in ‘youtube-dl’
>> package?  I could change the name if you don't mind and push it.
>
> I have no opinion on this! I package cookiecutter as
> `python-cookiecutter`, so I did the same with httpie.
> The only problem is that the binary is actually called `http`.

Well, ‘http’ as a package name is not good IMO ;-)

httpie as named in Debian and Nix should be good enough.

Pushed to master.

> Should I consider doing the same for the package `python-poetry` I've submitted?!

Yes, just a ‘poetry’.

Thanks,
Oleg.
[signature.asc (application/pgp-signature, inline)]

Reply sent to Oleg Pykhalov <go.wigust <at> gmail.com>:
You have taken responsibility. (Fri, 18 Oct 2019 15:11:03 GMT) Full text and rfc822 format available.

Notification sent to Tanguy Le Carrour <tanguy <at> bioneland.org>:
bug acknowledged by developer. (Fri, 18 Oct 2019 15:11:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 16 Nov 2019 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 160 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.