From patchwork Tue Apr 7 23:06:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 21159 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 81F6C27BBE4; Wed, 8 Apr 2020 00:07:28 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 373D427BBE1 for ; Wed, 8 Apr 2020 00:07:28 +0100 (BST) Received: from localhost ([::1]:54310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLxJX-0003kQ-F6 for patchwork@mira.cbaines.net; Tue, 07 Apr 2020 19:07:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54688) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLxJ9-0003kC-Kv for guix-patches@gnu.org; Tue, 07 Apr 2020 19:07:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLxJ8-0001sV-Hi for guix-patches@gnu.org; Tue, 07 Apr 2020 19:07:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39640) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jLxJ8-0001rq-55 for guix-patches@gnu.org; Tue, 07 Apr 2020 19:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jLxJ7-0007u7-V7 for guix-patches@gnu.org; Tue, 07 Apr 2020 19:07:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36599] [PATCH] gnu: Add node-semver. (Updated) References: <20190711121221.16123-1-goodoldpaul@autistici.org> In-Reply-To: <20190711121221.16123-1-goodoldpaul@autistici.org> Resent-From: goodoldpaul@autistici.org Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 07 Apr 2020 23:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36599 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36599@debbugs.gnu.org Received: via spool by 36599-submit@debbugs.gnu.org id=B36599.158630076930318 (code B ref 36599); Tue, 07 Apr 2020 23:07:01 +0000 Received: (at 36599) by debbugs.gnu.org; 7 Apr 2020 23:06:09 +0000 Received: from localhost ([127.0.0.1]:51186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jLxIH-0007sv-Fa for submit@debbugs.gnu.org; Tue, 07 Apr 2020 19:06:09 -0400 Received: from devianza.investici.org ([198.167.222.108]:22745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jLxIC-0007sj-Se for 36599@debbugs.gnu.org; Tue, 07 Apr 2020 19:06:08 -0400 Received: from 1.mail-backend.investici.org (unknown [10.0.0.11]) by devianza.investici.org (Postfix) with ESMTP id 345BEE05E6 for <36599@debbugs.gnu.org>; Tue, 7 Apr 2020 23:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1586300763; bh=FU8wxyJGBbLMRPzNnxp5qf3ZnsR6mxWejYqF8qlAN5U=; h=Date:From:To:Subject:From; b=twuL7ax7a42Z0+nsE1Pt6gaJqLiMckzVZY69I1tk414x8VcUBhEFBcovET1xIrIw5 +pOWICVNK5UN4usDIeJ0NDksZsOXD5FOv7CZRgOd0Uo+FSEGbGmzvH4/WSm+0pvv1G 744yh51CZ5a6V98Z9pX5VhYpgXRsxS6K9UVBNa9E= Received: from 1.webmail.investici.org (localhost [127.0.0.1]) (Authenticated sender: goodoldpaul@autistici.org) by 1.mail-backend.investici.org (Postfix) with ESMTPA id 22C2FC1FA7 for <36599@debbugs.gnu.org>; Tue, 7 Apr 2020 23:06:03 +0000 (UTC) MIME-Version: 1.0 Date: Tue, 07 Apr 2020 23:06:03 +0000 From: goodoldpaul@autistici.org User-Agent: Roundcube Webmail Message-ID: X-Sender: goodoldpaul@autistici.org 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 Hi, this patch fell again out of my mind. Here's an update version. From 143a217a89e4f73149c73523565a1437d8bdfa0e Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Wed, 8 Apr 2020 00:59:13 +0200 Subject: [PATCH] gnu: Add node-semver. * gnu/packages/node-xyz.scm (node-semver): New variable. --- gnu/packages/node-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 44236ec469..27cd5c18b7 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2020 Efraim Flashner +;;; Copyright © 2020 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -244,3 +245,26 @@ protocol used in @code{node-lynx}.") (description "This package provides the Node.js @code{util.deprecate()} function with browser support.") (license license:expat))) + +(define-public node-semver + (package + (name "node-semver") + (version "7.2.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/npm/node-semver.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "06biknqb05r9xsmcflm3ygh50pjvdk84x6r79w43kmck4fn3qn5p")))) + (build-system node-build-system) + (arguments + `(#:tests? #f)) ;; FIXME: Tests depend on node-tap + (home-page "https://github.com/npm/node-semver") + (synopsis "Parses semantic versions strings") + (description + "@code{node-semver} is a JavaScript implementation of the +@uref{https://semver.org/, SemVer.org} specification.") + (license license:isc))) -- 2.26.0