From patchwork Sun Jun 30 09:05:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 65784 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 9058A27BBEA; Sun, 30 Jun 2024 10:09:39 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 15C0A27BBE2 for ; Sun, 30 Jun 2024 10:09:39 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNqXX-0006DD-3B; Sun, 30 Jun 2024 05:08:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNqXV-0006Bc-GX for guix-patches@gnu.org; Sun, 30 Jun 2024 05:08:05 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNqXU-0001ed-8W for guix-patches@gnu.org; Sun, 30 Jun 2024 05:08:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sNqXU-0001sm-12 for guix-patches@gnu.org; Sun, 30 Jun 2024 05:08:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71843] [PATCH 03/26] gnu: Add go-github-com-shopspring-decimal. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 30 Jun 2024 09:08:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71843 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71843@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 71843-submit@debbugs.gnu.org id=B71843.17197384517012 (code B ref 71843); Sun, 30 Jun 2024 09:08:03 +0000 Received: (at 71843) by debbugs.gnu.org; 30 Jun 2024 09:07:31 +0000 Received: from localhost ([127.0.0.1]:55012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNqWw-0001ou-Vi for submit@debbugs.gnu.org; Sun, 30 Jun 2024 05:07:31 -0400 Received: from mail-lj1-f178.google.com ([209.85.208.178]:45466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNqWs-0001nE-4X for 71843@debbugs.gnu.org; Sun, 30 Jun 2024 05:07:26 -0400 Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2eaa89464a3so21397271fa.3 for <71843@debbugs.gnu.org>; Sun, 30 Jun 2024 02:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719738380; x=1720343180; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8fO4oVhU9PPX8eac9pdFoW4/lBauRbCo5kin6fawM2A=; b=M+TGLaPUbGfkJfQZl9OtjuG4U2SZqkav8XtnUTbS2Qe51yAOieGQW0LO+ShmjTDsOJ cmdIgCoRAczyfQoz+fUWmo/HbB/brTgR0e17JEsFD0/YC1e2hu+jTnczvB+8l51n2d0W BZDhaar3TX26dGOn4LjY0JkSTBjx5DfXWuf08ZWqLefrJTIMP3o4hVhx4nSnkx7XotED 7di6q5ZTthHqpcKyBFgrb1nCFYizyo5zAxiJhJmL7L21Nt5k+DQbReU9ibRLsGo8DP9L tcq1npJ/RrT5jVyZm4A88UD60aT0mHr2Wh5O3djA9wb+aI7DZ1EMCf/ciES2dMSlvKz9 qDKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719738380; x=1720343180; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8fO4oVhU9PPX8eac9pdFoW4/lBauRbCo5kin6fawM2A=; b=omNqyg3/I7atLXecSttgwOWUZ6ydqrTXdLbegt3Nf3KMgyqxs48MCevHVCo2uSlKq8 zlhS72iErZXfL9uIxUnBAf6hlNNUzpJVWGUsxaEUmRGEBvvYXTrAaq7NR/REX5DIPkQp Q9lHDS3ZDM1Z4xgolaDbehJQZAbkRhK1eSdRdxmAzE48qNkhGYkOobfORqCPvUS98lfx uefvac20OAjYx6mAY5y+MC7o9trP6TeKx7bM8ViFwiZuRZ51Q2IfFsuwDhYkynMZxSY4 CYm8PrBAkxNVpZ+9/0qCvTgtAXKge1X2dx8JQBtEkXmqjQTbjUDi3V4130UFCu3kDyHP NE8Q== X-Gm-Message-State: AOJu0YzAYxiyUr1KPzS3+7SkXBfeO1cPz3QZAfQVh9VkS/lQFhiShrkz qzNw9325peId1Z3uGGjS+Mj4BBlAvI9Ln4bDT9yoG7rrqgNATblU67ZnwxW/ X-Google-Smtp-Source: AGHT+IGcpgvIfmiTK9Y9aTjC5tMbG1EJlWa9AtSqLdmJAkRuBW6k7pQ9RrOvuVXab6OKQKaatru89A== X-Received: by 2002:a2e:8059:0:b0:2ec:5806:2883 with SMTP id 38308e7fff4ca-2ee5e70755amr16300811fa.53.1719738380310; Sun, 30 Jun 2024 02:06:20 -0700 (PDT) Received: from guxtil.incerto.xyz (bagu-15-b2-v4wan-170076-cust245.vm21.cable.virginm.net. [77.98.0.246]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4256af5b66csm103446845e9.18.2024.06.30.02.06.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jun 2024 02:06:20 -0700 (PDT) From: Sharlatan Hellseher Date: Sun, 30 Jun 2024 10:05:43 +0100 Message-ID: <37afe904015124d64226e5b55c0d70488d2cceba.1719691458.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang-maths.scm (go-github-com-shopspring-decimal): New variable. Change-Id: I52ba58d05be9f631e5c53ccf7c30a977d7fe66b3 --- gnu/packages/golang-maths.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm index dfb29abea4..2348255119 100644 --- a/gnu/packages/golang-maths.scm +++ b/gnu/packages/golang-maths.scm @@ -57,6 +57,37 @@ (define-public go-github-com-montanaflynn-stats "This package provides a statistical library for Golang.") (license license:expat))) +(define-public go-github-com-shopspring-decimal + (package + (name "go-github-com-shopspring-decimal") + (version "1.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/shopspring/decimal") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1p1iz0ybsjvc8k3w6lf92drs51fgrcbz0ib1p4ihp3gmdq5rnzjk")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/shopspring/decimal")) + (home-page "https://github.com/shopspring/decimal") + (synopsis "Arbitrary-precision fixed-point decimal numbers in Golang") + (description + "Package decimal implements an arbitrary precision fixed-point decimal. +Features: +@itemize +@item the zero-value is 0, and is safe to use without initialization +@item addition, subtraction, multiplication with no loss of precision +@item division with specified precision +@item database/sql serialization/deserialization +@item JSON and XML serialization/deserialization +@end itemize") + (license license:expat))) + ;;; ;;; Executables: ;;;