guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25733: [PATCH 16/18] gnu: Add python-amqplib.


From: contact . ng0
Subject: bug#25733: [PATCH 16/18] gnu: Add python-amqplib.
Date: Tue, 14 Feb 2017 20:16:01 +0000

From: ng0 <address@hidden>

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a72f5ac76..ddb7edbf3 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9583,6 +9583,31 @@ alternative when librabbitmq is not available.")
                    #:tests? #f
                    ,@(package-arguments 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))))) ;;There are no python2 tests.
+
 (define-public python-kombu
   (package
     (name "python-kombu")
-- 
2.11.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]