From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id lcebC8fIcGDZWwAAgWs5BA (envelope-from ) for ; Fri, 09 Apr 2021 23:36:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UJNtBMfIcGD9KAAAB5/wlQ (envelope-from ) for ; Fri, 09 Apr 2021 21:36:07 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C1D0E17506 for ; Fri, 9 Apr 2021 23:36:06 +0200 (CEST) Received: from localhost ([::1]:51042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUynN-0002Sf-UH for larch@yhetil.org; Fri, 09 Apr 2021 17:36:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUynK-0002SX-5A for guix-patches@gnu.org; Fri, 09 Apr 2021 17:36:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUynJ-0004Ey-Tk for guix-patches@gnu.org; Fri, 09 Apr 2021 17:36:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUynJ-0004Ex-Rr for guix-patches@gnu.org; Fri, 09 Apr 2021 17:36:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47680] [PATCH] gnu: Add node-once. Resent-From: Ron Nazarov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Apr 2021 21:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47680 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47680@debbugs.gnu.org Cc: Ron Nazarov X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161800411816245 (code B ref -1); Fri, 09 Apr 2021 21:36:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Apr 2021 21:35:18 +0000 Received: from localhost ([127.0.0.1]:51078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUymc-0004Dx-BG for submit@debbugs.gnu.org; Fri, 09 Apr 2021 17:35:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:52642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUymb-0004Dq-4F for submit@debbugs.gnu.org; Fri, 09 Apr 2021 17:35:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUyma-0002KP-TU for guix-patches@gnu.org; Fri, 09 Apr 2021 17:35:16 -0400 Received: from knopi.disroot.org ([178.21.23.139]:48742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUymY-0003h2-46 for guix-patches@gnu.org; Fri, 09 Apr 2021 17:35:16 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id A3AA750CF4; Fri, 9 Apr 2021 23:35:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o7Vo3OovplSJ; Fri, 9 Apr 2021 23:35:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1618004105; bh=ClbR1Hlcvh9kUSKYRqCh0EJS1bWcsjvJk2NmdZ7SOCg=; h=From:To:Cc:Subject:Date; b=dgfxxHBAkOQwxBsme4Y7DzaYc4UqXp9CuXaLKSaz4h5JQ3tdauIvSJMK72MNVf4OW 0wd2zPigpc1s8kszWFGvF0ekNlPkKNwcq8paud28zVVG8evtK+jTtMeu3dcdio7ajt INowARkeROv/E1mV87qPWr1K65C5QIVufbSbhHZ6PBeVQCe+yc2p9I/T0X1S8RIF9R C3xWb2TlKFW7YJcU994ifT+OpopqjhO+V1zuwmt+KB3pBDWdKALRyOZxlmhOr01Tu9 63P7Eo5cbP1MvBu1ZiphxC8JCxy54ExQJ8Ptxc5ej7SvAUtMpiAuiu3xl5Naw9qKHZ ixTyhJQPQ+2dw== Date: Fri, 9 Apr 2021 22:34:43 +0100 Message-Id: <20210409213443.40317-1-noisytoot@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=noisytoot@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Ron Nazarov X-ACL-Warn: , Ron Nazarov via Guix-patches From: Ron Nazarov via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618004166; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=6eyBa8xNnRzDVfSt+NnJ+v+cy1+SJfnpBf3TqERu6QQ=; b=UtrlyijU6M6Q03gdOYajn0bk7SehvAdmnercTNZRNmXJlm2KBWnz6o46+7eOQRHd3VAfA9 QLPcwPh7lAvXFeXS8ulpXj2RyKlHc8BwIKOYAxP9HUgANX2cHJLyjo22/Dd1UNOrLzoaOd uJEnISg7yI7kdxE9aIuFUbrPZr6U9HUgyJW64XzH2OKkMBIs7Wfbe98pb/Aq5u6+45F9i9 BwPajyhmr9/LSSHnDvY9oNDH1Gdw1aMp16lUQu5PbD2caZ37dShPb+HPc49tr1L0xknhd9 4GuIXJSZJJarlX08Wz2ZloPZ2Xg6xXy7qJuwT3Mzs9qdN0hFC4RHPbCuRG+ipA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618004166; a=rsa-sha256; cv=none; b=Gj5bLb5HTJnPWFUken5iSlnhzccR0ypaXOe/zimFbkDufHCNy3OqYAOK/HsOOx16uNWKqV c7z6PNg+3JhU+w2v7A+Q2x+ft8kATXA8RMEtpICtb7bM/eLT8SJkM1rkad9tT4fMFuo6QY XHA95WdIdalCVvgjXjKG5TwTk/w2mjTEtIBLUWOx5NWY7j5F19XJNzbh+luldcuZ3QLhI/ zVXZh/UvZu0hHSmV+cPUvl3qkLEVqSIbY/sTUGq00oazn0Fsv0hLqMln0pCbdPqbE0/W4g l6D9DSU+YNWv534gljYzpIVlmxFZiWFB9PzgnixtcjYyvbHjF+c7BslEWUUTGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=dgfxxHBA; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 1.56 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=dgfxxHBA; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: C1D0E17506 X-Spam-Score: 1.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: hYq6ApUBnknT * gnu/packages/node-xyz.scm (node-once): New variable. --- gnu/packages/node-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index f401380310..a56190da9e 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -298,3 +298,30 @@ function with browser support.") (synopsis "Callback wrapping utility") (description "@code{wrappy} is a utility for Node.js to wrap callbacks.") (license license:isc))) + +(define-public node-once + (package + (name "node-once") + (version "1.4.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/isaacs/once") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1z8dcbf28dqdcp4wb0c53wrs90a07nkrax2c9kk26dsk1dhrnxav")))) + (build-system node-build-system) + (arguments + '(#:tests? #f ; FIXME: Tests depend on node-tap + #:phases + (modify-phases %standard-phases + ;; Fails due to tap being missing + (delete 'configure)))) + (inputs + `(("node-wrappy" ,node-wrappy))) + (home-page "https://github.com/isaacs/once") + (synopsis "Node.js module to only run a function once") + (description "@code{once} is a Node.js module to only run a function once.") + (license license:isc))) -- 2.30.2