From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: [PATCH 14/18] gnu: Add python-kombu. Date: Mon, 15 Feb 2016 15:32:34 -0800 Message-ID: <877fi5sg6l.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/x-patch Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVSdD-0006dt-PW for guix-devel@gnu.org; Mon, 15 Feb 2016 18:32:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVSd9-00012J-DS for guix-devel@gnu.org; Mon, 15 Feb 2016 18:32:39 -0500 Received: from dustycloud.org ([50.116.34.160]:39472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVSd9-00012D-8g for guix-devel@gnu.org; Mon, 15 Feb 2016 18:32:35 -0500 Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id E4FCB26676 for ; Mon, 15 Feb 2016 18:32:34 -0500 (EST) Content-Disposition: inline; filename=0014-gnu-Add-python-kombu.patch 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org >From 096adf2f2172d77e7a3d08175be2a9ef72f7d38a Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sun, 14 Feb 2016 15:38:10 -0800 Subject: [PATCH 14/18] gnu: Add python-kombu. * gnu/packages/python.scm (python-kombu, python2-kombu): New variables. --- gnu/packages/python.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f9ad796..2bc45ae 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7933,3 +7933,41 @@ alternative when librabbitmq is not available.") ,@(package-arguments amqp))) (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs amqp)))))) + +(define-public python-kombu + (package + (name "python-kombu") + (version "3.0.33") + (source + (origin + (method url-fetch) + (uri (pypi-uri "kombu" version)) + (sha256 + (base32 + "16brjx2lgwbj2a37d0pjbfb84nvld6irghmqrs3qfncajp51hgc5")))) + (build-system python-build-system) + (native-inputs + `(("python-mock" ,python-mock) + ("python-nose" ,python-nose))) + (inputs + `(("python-anyjson" ,python-anyjson) + ("python-amqp" ,python-amqp))) + (home-page "http://kombu.readthedocs.org") + (synopsis "Message passing library for Python") + (description "The aim of Kombu is to make messaging in Python as easy as +possible by providing an idiomatic high-level interface for the AMQ protocol, +and also provide proven and tested solutions to common messaging problems. +AMQP is the Advanced Message Queuing Protocol, an open standard protocol for +message orientation, queuing, routing, reliability and security, for which the +RabbitMQ messaging server is the most popular implementation.") + (license bsd-3) + (properties `((python2-variant . ,(delay python2-kombu)))))) + +(define-public python2-kombu + (let ((kombu (package-with-python2 + (strip-python2-variant python-kombu)))) + (package + (inherit kombu) + (inputs `(("python2-setuptools" ,python2-setuptools) + ("python2-unittest2" ,python2-unittest2) + ,@(package-inputs kombu)))))) -- 2.6.3