unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#37613] [PATCH 0/1] gnu: Add python-httpie.
@ 2019-10-04  6:55 Tanguy Le Carrour
  2019-10-04  6:57 ` [bug#37613] [PATCH 1/1] " Tanguy Le Carrour
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tanguy Le Carrour @ 2019-10-04  6:55 UTC (permalink / raw)
  To: 37613

Make the commands `http` available.

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

-- 
Tanguy

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#37613] [PATCH 1/1] gnu: Add python-httpie.
  2019-10-04  6:55 [bug#37613] [PATCH 0/1] gnu: Add python-httpie Tanguy Le Carrour
@ 2019-10-04  6:57 ` Tanguy Le Carrour
  2019-10-14  9:56 ` [bug#37613] Updating commit messages Tanguy Le Carrour
  2019-10-14 11:43 ` [bug#37613] [PATCH] gnu: Add python-httpie Tanguy Le Carrour
  2 siblings, 0 replies; 7+ messages in thread
From: Tanguy Le Carrour @ 2019-10-04  6:57 UTC (permalink / raw)
  To: 37613

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: Type: text/plain, Size: 1820 bytes --]

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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#37613] Updating commit messages
  2019-10-04  6:55 [bug#37613] [PATCH 0/1] gnu: Add python-httpie Tanguy Le Carrour
  2019-10-04  6:57 ` [bug#37613] [PATCH 1/1] " Tanguy Le Carrour
@ 2019-10-14  9:56 ` Tanguy Le Carrour
  2019-10-14 11:43 ` [bug#37613] [PATCH] gnu: Add python-httpie Tanguy Le Carrour
  2 siblings, 0 replies; 7+ messages in thread
From: Tanguy Le Carrour @ 2019-10-14  9:56 UTC (permalink / raw)
  To: 37613

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#37613] [PATCH] gnu: Add python-httpie.
  2019-10-04  6:55 [bug#37613] [PATCH 0/1] gnu: Add python-httpie Tanguy Le Carrour
  2019-10-04  6:57 ` [bug#37613] [PATCH 1/1] " Tanguy Le Carrour
  2019-10-14  9:56 ` [bug#37613] Updating commit messages Tanguy Le Carrour
@ 2019-10-14 11:43 ` Tanguy Le Carrour
  2019-10-17 20:13   ` Oleg Pykhalov
  2 siblings, 1 reply; 7+ messages in thread
From: Tanguy Le Carrour @ 2019-10-14 11:43 UTC (permalink / raw)
  To: 37613

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: Type: text/plain, Size: 2175 bytes --]

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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#37613] [PATCH] gnu: Add python-httpie.
  2019-10-14 11:43 ` [bug#37613] [PATCH] gnu: Add python-httpie Tanguy Le Carrour
@ 2019-10-17 20:13   ` Oleg Pykhalov
  2019-10-18 12:50     ` Tanguy Le Carrour
  0 siblings, 1 reply; 7+ messages in thread
From: Oleg Pykhalov @ 2019-10-17 20:13 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: 37613

[-- Attachment #1: Type: text/plain, Size: 1595 bytes --]

Hello,

Thank you for packaging this tool!

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

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#37613] [PATCH] gnu: Add python-httpie.
  2019-10-17 20:13   ` Oleg Pykhalov
@ 2019-10-18 12:50     ` Tanguy Le Carrour
  2019-10-18 15:09       ` bug#37613: " Oleg Pykhalov
  0 siblings, 1 reply; 7+ messages in thread
From: Tanguy Le Carrour @ 2019-10-18 12:50 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: 37613

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#37613: [PATCH] gnu: Add python-httpie.
  2019-10-18 12:50     ` Tanguy Le Carrour
@ 2019-10-18 15:09       ` Oleg Pykhalov
  0 siblings, 0 replies; 7+ messages in thread
From: Oleg Pykhalov @ 2019-10-18 15:09 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: 37613, 37613-done

[-- Attachment #1: Type: text/plain, Size: 789 bytes --]

Tanguy Le Carrour <tanguy@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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-10-18 15:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-04  6:55 [bug#37613] [PATCH 0/1] gnu: Add python-httpie Tanguy Le Carrour
2019-10-04  6:57 ` [bug#37613] [PATCH 1/1] " Tanguy Le Carrour
2019-10-14  9:56 ` [bug#37613] Updating commit messages Tanguy Le Carrour
2019-10-14 11:43 ` [bug#37613] [PATCH] gnu: Add python-httpie Tanguy Le Carrour
2019-10-17 20:13   ` Oleg Pykhalov
2019-10-18 12:50     ` Tanguy Le Carrour
2019-10-18 15:09       ` bug#37613: " Oleg Pykhalov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).