From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: [PATCH 16/18] gnu: Add python-celery. Date: Fri, 19 Feb 2016 18:37:00 -0800 Message-ID: <871t88nm3v.fsf@dustycloud.org> References: <874md9sg5m.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/x-diff Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWxPy-0005Y2-Nu for guix-devel@gnu.org; Fri, 19 Feb 2016 21:37:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWxPx-0001CS-L9 for guix-devel@gnu.org; Fri, 19 Feb 2016 21:37:10 -0500 Received: from dustycloud.org ([2600:3c02::f03c:91ff:feae:cb51]:50384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWxPx-0001C0-DD for guix-devel@gnu.org; Fri, 19 Feb 2016 21:37:09 -0500 Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id AB3E02673E for ; Fri, 19 Feb 2016 21:37:08 -0500 (EST) In-reply-to: <874md9sg5m.fsf@dustycloud.org> Content-Disposition: inline; filename=0015-gnu-Add-python-celery.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 44c17451693020da014eb8e40e9eec74961e7b97 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sun, 14 Feb 2016 15:57:24 -0800 Subject: [PATCH 15/18] gnu: Add python-celery. * gnu/packages/python.scm (python-celery, python2-celery): New variables. --- gnu/packages/python.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 87575f5..48946a7 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -8007,3 +8007,42 @@ Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.") ("python2-unittest2" ,python2-unittest2) ("python2-mock" ,python2-mock) ,@(package-native-inputs billiard)))))) + +(define-public python-celery + (package + (name "python-celery") + (version "3.1.20") + (source + (origin + (method url-fetch) + (uri (pypi-uri "celery" version)) + (sha256 + (base32 + "1md6ywg1s0946qyp8ndnsd677wm0yax933h2sb4m3a4j7lf1jbyh")))) + (build-system python-build-system) + (native-inputs + `(("python-nose" ,python-nose))) + (propagated-inputs + `(("python-pytz" ,python-pytz) + ("python-billiard" ,python-billiard) + ("python-kombu" ,python-kombu))) + (home-page "http://celeryproject.org") + (synopsis "Distributed Task Queue") + (description "Celery is an asynchronous task queue/job queue based on +distributed message passing. It is focused on real-time operation, but +supports scheduling as well. The execution units, called tasks, are executed +concurrently on a single or more worker servers using multiprocessing, +Eventlet, or gevent. Tasks can execute asynchronously (in the background) or +synchronously (wait until ready).") + (license bsd-3) + (properties `((python2-variant . ,(delay python2-celery)))))) + +(define-public python2-celery + (let ((celery (package-with-python2 + (strip-python2-variant python-celery)))) + (package + (inherit celery) + (native-inputs `(("python2-setuptools" ,python2-setuptools) + ("python2-unittest2" ,python2-unittest2) + ("python2-mock" ,python2-mock) + ,@(package-native-inputs celery)))))) -- 2.6.3