From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MFx4BfzQcGDzawAAgWs5BA (envelope-from ) for ; Sat, 10 Apr 2021 00:11:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aOMPO/vQcGD/AQAA1q6Kng (envelope-from ) for ; Fri, 09 Apr 2021 22:11: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 B7C5E17C2C for ; Sat, 10 Apr 2021 00:11:07 +0200 (CEST) Received: from localhost ([::1]:59976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUzLG-0008NA-EH for larch@yhetil.org; Fri, 09 Apr 2021 18:11:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUzLC-0008Ms-Rw for guix-patches@gnu.org; Fri, 09 Apr 2021 18:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUzLC-000184-Kd for guix-patches@gnu.org; Fri, 09 Apr 2021 18:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUzLC-00053O-Gv for guix-patches@gnu.org; Fri, 09 Apr 2021 18:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47682] [PATCH v2] gnu: Add node-once. Resent-From: Ron Nazarov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Apr 2021 22:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47682 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47682@debbugs.gnu.org Cc: Ron Nazarov X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161800624019391 (code B ref -1); Fri, 09 Apr 2021 22:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Apr 2021 22:10:40 +0000 Received: from localhost ([127.0.0.1]:51090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUzKq-00052h-EZ for submit@debbugs.gnu.org; Fri, 09 Apr 2021 18:10:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:33342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUzKo-00052a-Pi for submit@debbugs.gnu.org; Fri, 09 Apr 2021 18:10:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUzKo-0008Kx-L7 for guix-patches@gnu.org; Fri, 09 Apr 2021 18:10:38 -0400 Received: from knopi.disroot.org ([178.21.23.139]:35460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUzKl-0000lc-7A for guix-patches@gnu.org; Fri, 09 Apr 2021 18:10:38 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 0816650D13; Sat, 10 Apr 2021 00:10:33 +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 nQk9OMZwldG7; Sat, 10 Apr 2021 00:10:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1618006231; bh=e/KbY0yIwKWEwV4moAp/2dVKkx7MXkTY4hzNod0xaTA=; h=From:To:Cc:Subject:Date; b=f91QKBAuwKNyZ4uWmRPotnQKE+JUY825sQx0BfJJOd/cJjSfrvdrvDjyquvXqBjv5 f2eQazH4MloEm7zgyJNtGOiYRC8zeq1uqKNMYs4rCY25kCi0hXO77oEV3nOAyGHNYR 51MhOgVDkQwKlKLcSOLBARpGHlDU1N83YikFncqnXBKKdxARppuEXjN6mfSUsmKG/C eMJ0mCay6sOv2ryO027sXbwyiqtcPPb7550ICoPDZsorn5ZkdmZ9SRZZkDOpLiuqkg wp6aS6r5fNfe1PxvYbU6lhK8lt8RYw1o3oug7qZdYF7MzRQWea9ljA4daipXbEl0OH KXOzbfhivX8/Q== Date: Fri, 9 Apr 2021 23:10:18 +0100 Message-Id: <20210409221018.44513-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=1618006267; 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=bi2T4dLsQqxzDCmeggEL5iCpdIDNdX/X9EBZQr8/sYQ=; b=Of/onE3Fn1zkCxvi1YWarL9y37HgyC4l5El04JVgQ5S2seZIGwPzZmTvaFRlwqHEYQL0P2 XRP6Olh0zCOzbTWFRVMWiWptZw9F/COYqrhgQ0pgNzpoekHHKfl1N8JnZ73+MUl1WA+i8A N/mf1eiUpDEOBQjQfac7fu8r2SppjdMPO3FM8t+oSKCvG/KlCAqJhWlPZzC9ixzIhZmV7x xuAcPsEBxmqZQD9pWKATVwgqY1b1QZ8rDFJUuwoa4RYIep8LMQD7pxmVp89f42zc+SD7Pr juzgM5L4pRDP4kl0Ff2Fl47YHCS+xLlkZ3KmCiNPoGcNrJ4NxagipPvAKXPnGw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618006267; a=rsa-sha256; cv=none; b=Z8/TUQ4k70ZuSiCMqwn0+r5Iypkb3Wkm9P4+L2vxV+9pQ4J/sHoXF5rXjzg3HT0mvuM2C+ qWeJzMXCGu0UIqNaAAXdzC1+YUxhOQEGu084iJxcGqN7PkOGr+oJleRIY0bD1iJ7xuzaBh ARyOnEquoRc/56I5k0tUQQ6e6LF+6Q/th/xCTE2lO0HmhBogAgyjGIlSvtmBiYOFAcMVub wIBzoW7iI2GicGhVx6jGwtnBZ/vGwyRMwLwPvlVOvIU6r3htjT4jVdEfiDNhVpo520Geq6 CAp08pfzb3rNLfKZI/UyORerglK/smbk8aWiAgup1ojWFLTB01/y2DJVqx9Wrw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=f91QKBAu; 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=f91QKBAu; 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: B7C5E17C2C X-Spam-Score: 1.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: Y+1l6uFAXppu * gnu/packages/node-xyz.scm (node-once): New variable. --- gnu/packages/node-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index f401380310..ee0b5e62d9 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -298,3 +298,33 @@ 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 + ;; If configure existed it would fail due to tap being missing, + ;; as we do not have tap packaged yet, tap is used for tests. + ;; This package still works as a dependency of glob and inflight, + ;; which are being packaged. + (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