From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 16/18] gnu: Add python-amqplib. Date: Sun, 2 Oct 2016 11:00:53 +0000 Message-ID: <20161002110054.2297-17-ngillmann@runbox.com> References: <87bmz9cu89.fsf@we.make.ritual.n0.is> <20161002110054.2297-1-ngillmann@runbox.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqeWT-000608-Gn for guix-devel@gnu.org; Sun, 02 Oct 2016 07:01:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqeWS-0002kO-EO for guix-devel@gnu.org; Sun, 02 Oct 2016 07:01:33 -0400 Received: from aibo.runbox.com ([91.220.196.211]:32782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqeWS-0002jy-88 for guix-devel@gnu.org; Sun, 02 Oct 2016 07:01:32 -0400 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1bqeWR-0002Lg-J5 for guix-devel@gnu.org; Sun, 02 Oct 2016 13:01:31 +0200 In-Reply-To: <20161002110054.2297-1-ngillmann@runbox.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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