* gnu/packages/python.scm (python-amqplib): New variable. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
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") -- 2.10.0