From patchwork Mon Aug 19 12:04:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 14964 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 670CF172E4; Mon, 19 Aug 2019 13:07:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 097D717283 for ; Mon, 19 Aug 2019 13:07:09 +0100 (BST) Received: from localhost ([::1]:48894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgRI-000869-Ah for patchwork@mira.cbaines.net; Mon, 19 Aug 2019 08:07:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35501) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgQN-0006rA-VS for guix-patches@gnu.org; Mon, 19 Aug 2019 08:06:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgQG-0000az-9l for guix-patches@gnu.org; Mon, 19 Aug 2019 08:06:10 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50437) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hzgQE-0000aB-HO for guix-patches@gnu.org; Mon, 19 Aug 2019 08:06:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hzgQE-0004z2-9m for guix-patches@gnu.org; Mon, 19 Aug 2019 08:06:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37082] Add poussetaches Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Aug 2019 12:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37082 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 37082@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156621631919100 (code B ref -1); Mon, 19 Aug 2019 12:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Aug 2019 12:05:19 +0000 Received: from localhost ([127.0.0.1]:59258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hzgPX-0004y0-EG for submit@debbugs.gnu.org; Mon, 19 Aug 2019 08:05:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:50725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hzgPV-0004xs-Ov for submit@debbugs.gnu.org; Mon, 19 Aug 2019 08:05:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35350) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgPT-000620-B8 for guix-patches@gnu.org; Mon, 19 Aug 2019 08:05:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgPM-00007E-Rq for guix-patches@gnu.org; Mon, 19 Aug 2019 08:05:14 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:50224) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgPI-000051-Vd for guix-patches@gnu.org; Mon, 19 Aug 2019 08:05:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZqrdXanZ7sXoI9O0obfxC0bfY0U7KThxnd5aakF8gwc=; b=ktHhiSgdEysCq+qZgicBSb+dCa k4LAVeN5knEJMPnhbNDbk60eL4FoVERhJ4pmm84SwLhyQz4+xDFlQZTtb8OkeuN2UK40xb6ZdP8UW oS0qXues0DPnOXS1aBiHMZt7GNP3sXxkgIDR2EuHvnLdMD17wpPR09tJIUhGWuI5ob3A=; Received: from [14.139.128.10] (helo=steel) by systemreboot.net with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.1) (envelope-from ) id 1hzgPD-00052e-6X for guix-patches@gnu.org; Mon, 19 Aug 2019 17:34:59 +0530 From: Arun Isaac Date: Mon, 19 Aug 2019 17:34:56 +0530 Message-ID: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches The attached patchset adds poussetaches, a lightweight asynchronous task execution service. From e0edac0d08da5845a36b05de1f8f0110540cda17 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 19 Aug 2019 17:28:22 +0530 Subject: [PATCH 2/2] gnu: Add poussetaches. * gnu/packages/web.scm (poussetaches): New variable. --- gnu/packages/web.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 0b7bf698f1..205826cc9a 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -68,6 +68,7 @@ #:use-module (guix build-system python) #:use-module (guix build-system ant) #:use-module (guix build-system scons) + #:use-module (guix build-system go) #:use-module (gnu packages) #:use-module (gnu packages admin) #:use-module (gnu packages adns) @@ -92,6 +93,7 @@ #:use-module (gnu packages gnome) #:use-module (gnu packages gnu-doc) #:use-module (gnu packages gnupg) + #:use-module (gnu packages golang) #:use-module (gnu packages gperf) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) @@ -6597,3 +6599,35 @@ It's also possible to rewrite existing log files. Anonip can also be uses as a Python module in your own Python application.") (license license:bsd-3))) + +(define-public poussetaches + (package + (name "poussetaches") + (version "0.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tsileo/poussetaches") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "07106kfcz3a39jvrv3mlqqxlihsmdhgkrjnqznyjsij9absgvdv6")))) + (build-system go-build-system) + (propagated-inputs + `(("go-github-com-robfig-cron" ,go-github-com-robfig-cron) + ("go-golang-org-x-time-rate" ,go-golang-org-x-time-rate))) + (arguments + `(#:import-path "github.com/tsileo/poussetaches")) + (home-page "https://github.com/tsileo/poussetaches") + (synopsis "Lightweight asynchronous task execution service") + (description "Poussetaches (which literally means \"push tasks\" in +French) is a lightweight asynchronous task execution service that aims to +replace Celery and RabbitMQ for small Python applications. + +The app posts base64-encoded payload to poussetaches and specifies the +endpoint that will be used to trigger the task. Poussetaches makes HTTP +requests with the registered payload until the right status code is +returned.") + (license license:isc))) -- 2.22.0