Patchwork [16/18] gnu: Add python-amqplib.

login
register
mail settings
Submitter ng0
Date Oct. 2, 2016, 11 a.m.
Message ID <20161002110054.2297-17-ngillmann@runbox.com>
Download mbox | patch
Permalink /patch/16186/
State New
Headers show

Comments

ng0 - Oct. 2, 2016, 11 a.m.
* gnu/packages/python.scm (python-amqplib): New variable.
---
 gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 1bdce65..ef14ca4 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8463,6 +8463,33 @@  alternative when librabbitmq is not available.")
       (native-inputs `(("python2-setuptools" ,python2-setuptools)
                        ,@(package-native-inputs amqp))))))
 
+(define-public python-amqplib
+  (package
+    (name "python-amqplib")
+    (version "1.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "amqplib" version ".tgz"))
+       (sha256
+        (base32
+         "0nvy45bb9ws1kmpczpqkkpgzqrzc0h2323zmzchzs2m6h6v6jgc4"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/barryp/py-amqplib")
+    (synopsis "AMQP Client Library")
+    (description "Python client for the Advanced Message Queuing Procotol (AMQP)")
+    (license license:gpl2+)))
+
+(define-public python2-amqplib
+  (let ((amqplib (package-with-python2
+                  (strip-python2-variant python-amqplib))))
+    (package
+      (inherit amqplib)
+      (arguments
+       `(#:tests? #f)) ;; For python2 there are no tests
+      (native-inputs
+       `(("python2-setuptools" ,python2-setuptools))))))
+
 (define-public python-kombu
   (package
     (name "python-kombu")