Subject: bug#25733: [PATCH 01/18] gnu: Add python-geventhttpclient.

From: [email-masked]
Date: Tue, 14 Feb 2017 20:15:46 +0000

From: ng0 <[email-masked]>

* gnu/packages/python.scm (python-geventhttpclient): New variable.
---
 gnu/packages/python.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 35ab30ecc..8b6e55d0b 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10373,6 +10373,44 @@ to provide a high-level synchronous API on top of the libev event loop.")
 (define-public python2-gevent
   (package-with-python2 python-gevent))
 
+(define-public python-geventhttpclient
+  (package
+    (name "python-geventhttpclient")
+    (version "1.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "geventhttpclient" version))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           ;; https://github.com/gwik/geventhttpclient/pull/82
+           (delete-file-recursively "src/geventhttpclient/tests/__pycache__")))
+       (sha256
+        (base32
+         "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-certifi" ,python-certifi)
+       ("python-gevent" ,python-gevent)
+       ("python-six" ,python-six)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-runner" ,python-pytest-runner)))
+    (home-page "https://github.com/gwik/geventhttpclient")
+    (synopsis "Http client library for gevent")
+    (description
+     "High performance, concurrent HTTP client library for Python using gevent.")
+    (license (list license:expat
+                   ;; http_parser.c is based on src/http/ngx_http_parse.c
+                   ;; from NGINX copyright Igor Sysoev
+                   license:bsd-3))
+    (properties `((python2-variant . ,(delay python2-geventhttpclient))))))
+
+(define-public python2-geventhttpclient
+  (package
+    (inherit (package-with-python2
+              (strip-python2-variant python-geventhttpclient)))))
+
 (define-public python-twisted
   (package
     (name "python-twisted")
-- 
2.11.1