unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#37082] Add poussetaches
@ 2019-08-19 12:04 Arun Isaac
  2019-08-27 10:31 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Arun Isaac @ 2019-08-19 12:04 UTC (permalink / raw)
  To: 37082


[-- Attachment #1.1: Type: text/plain, Size: 94 bytes --]


The attached patchset adds poussetaches, a lightweight asynchronous task
execution service.


[-- Attachment #1.2: 0001-gnu-Add-go-github-com-robfig-cron.patch --]
[-- Type: text/x-patch, Size: 1924 bytes --]

From cccbc240836acd1be7e1f1bc4eac51d1c719fd6a Mon Sep 17 00:00:00 2001
From: Arun Isaac <arunisaac@systemreboot.net>
Date: Mon, 19 Aug 2019 17:27:17 +0530
Subject: [PATCH 1/2] gnu: Add go-github-com-robfig-cron.

* gnu/packages/golang.scm (go-github-com-robfig-cron): New variable.
---
 gnu/packages/golang.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 01de446ce0..950ba9fb37 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -15,6 +15,7 @@
 ;;; Copyright @ 2018, 2019 Katherine Cox-Buday <cox.katherine.e@gmail.com>
 ;;; Copyright @ 2019 Giovanni Biscuolo <g@xelera.eu>
 ;;; Copyright @ 2019 Alex Griffin <a@ajgrf.com>
+;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3640,3 +3641,26 @@ stack traces.  It simplifies the traces to make salient information more visible
 and aid debugging.")
     (home-page "https://github.com/maruel/panicparse")
     (license license:asl2.0)))
+
+(define-public go-github-com-robfig-cron
+  (package
+    (name "go-github-com-robfig-cron")
+    (version "3.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/robfig/cron")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0bvq5gxkhyj21lq32nma23i4dpwp7bswnp2yks6372ilkcyisx2z"))))
+    (build-system go-build-system)
+    (arguments
+     `(#:import-path "github.com/robfig/cron"))
+    (home-page "https://godoc.org/github.com/robfig/cron")
+    (synopsis "Cron library for Go")
+    (description "This package provides a cron library for Go.  It implements
+a cron spec parser and job runner.")
+    (license license:expat)))
-- 
2.22.0


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.3: 0002-gnu-Add-poussetaches.patch --]
[-- Type: text/x-patch, Size: 2606 bytes --]

From e0edac0d08da5845a36b05de1f8f0110540cda17 Mon Sep 17 00:00:00 2001
From: Arun Isaac <arunisaac@systemreboot.net>
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


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#37082] Add poussetaches
  2019-08-19 12:04 [bug#37082] Add poussetaches Arun Isaac
@ 2019-08-27 10:31 ` Ludovic Courtès
  2019-08-29 19:56   ` bug#37082: " Arun Isaac
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2019-08-27 10:31 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 37082

Hi Arun,

Arun Isaac <arunisaac@systemreboot.net> skribis:

> From cccbc240836acd1be7e1f1bc4eac51d1c719fd6a Mon Sep 17 00:00:00 2001
> From: Arun Isaac <arunisaac@systemreboot.net>
> Date: Mon, 19 Aug 2019 17:27:17 +0530
> Subject: [PATCH 1/2] gnu: Add go-github-com-robfig-cron.
>
> * gnu/packages/golang.scm (go-github-com-robfig-cron): New variable.

[...]

> From e0edac0d08da5845a36b05de1f8f0110540cda17 Mon Sep 17 00:00:00 2001
> From: Arun Isaac <arunisaac@systemreboot.net>
> Date: Mon, 19 Aug 2019 17:28:22 +0530
> Subject: [PATCH 2/2] gnu: Add poussetaches.
>
> * gnu/packages/web.scm (poussetaches): New variable.

Funny name.  :-)

LGTM!

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#37082: Add poussetaches
  2019-08-27 10:31 ` Ludovic Courtès
@ 2019-08-29 19:56   ` Arun Isaac
  0 siblings, 0 replies; 3+ messages in thread
From: Arun Isaac @ 2019-08-29 19:56 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 37082-done

[-- Attachment #1: Type: text/plain, Size: 165 bytes --]


>> * gnu/packages/web.scm (poussetaches): New variable.
>
> Funny name.  :-)

:-) It apparently means "push tasks" in French.

>
> LGTM!

Pushed to master, thanks!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-29 19:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-19 12:04 [bug#37082] Add poussetaches Arun Isaac
2019-08-27 10:31 ` Ludovic Courtès
2019-08-29 19:56   ` bug#37082: " Arun Isaac

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).