From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0G8QMg4H62CFmQAAgWs5BA (envelope-from ) for ; Sun, 11 Jul 2021 16:58:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gHazLQ4H62CtHgAAB5/wlQ (envelope-from ) for ; Sun, 11 Jul 2021 14:58:22 +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 5D4902CD61 for ; Sun, 11 Jul 2021 16:58:22 +0200 (CEST) Received: from localhost ([::1]:50624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2auT-0001Of-Bb for larch@yhetil.org; Sun, 11 Jul 2021 10:58:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2atL-0006Yo-Q0 for guix-patches@gnu.org; Sun, 11 Jul 2021 10:57:11 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2atL-0007E7-HQ for guix-patches@gnu.org; Sun, 11 Jul 2021 10:57:11 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m2atL-0003f6-I3 for guix-patches@gnu.org; Sun, 11 Jul 2021 10:57:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49383] [PATCH v2 24/26] gnu: Add rust-rust-decimal-1 Resent-From: Domagoj Stolfa Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 11 Jul 2021 14:57:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49383 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49383@debbugs.gnu.org Cc: Domagoj Stolfa Received: via spool by 49383-submit@debbugs.gnu.org id=B49383.162601541813876 (code B ref 49383); Sun, 11 Jul 2021 14:57:11 +0000 Received: (at 49383) by debbugs.gnu.org; 11 Jul 2021 14:56:58 +0000 Received: from localhost ([127.0.0.1]:35669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2at8-0003be-30 for submit@debbugs.gnu.org; Sun, 11 Jul 2021 10:56:58 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:40701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2asy-0003YR-Sj for 49383@debbugs.gnu.org; Sun, 11 Jul 2021 10:56:49 -0400 Received: by mail-wr1-f47.google.com with SMTP id l7so19899637wrv.7 for <49383@debbugs.gnu.org>; Sun, 11 Jul 2021 07:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3A0ZWo2yEbeizDEmq7Y/5Ef2I9W8wpk1yTHcjyQiEkM=; b=WvacvLE50UDDBBbAdYFfs3h6DBhPDTywEIWezzsD97af1sbao5ymgaLkOE+CGCYgP3 gMGWnuEej+9kHaehEBC/PbNx9oAsLt8V3luqDDtJuws3zWO0Ss0PGaqFhdAPQ2FVrIV7 7Yp9iv3J+Q2tpHjobKm/feMyuNQC/fEh1wfrA/bmUEEQCbBg9ca7LvS34EZ6eDGsWcwO TynO/pQqEk84eb491gHo8y5MRGk5OwElK+7/pscnCvgdExzIYyFKXS6IXYgnupgYx6Ye Jsgy94GMmiiIDS/tNQXdo2LJEhfIZggQ4lhlmm2IB3f14XQ2xp0rv1IcI9dZC5Z4Ilo0 /sRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3A0ZWo2yEbeizDEmq7Y/5Ef2I9W8wpk1yTHcjyQiEkM=; b=ofn/ECtqx1VwgMMbVMoiAxsgLZdjnm4qSkT8DBSghVYi0VfANU09Hfv+woLHEx2XgW kvLPnu5B4k6pnLCoa/Lgh/y9499w8HjyRSmlEPib8yxZOEV87QJvJpeMdy3bYD71dG11 EXD+MJE1ZstCuJJX+u0BL+3OqDqdJkFt2cMLKVE4twtGSWEw8NMTcAw0fo51oq+cIaEM 13OIUQccQBpccRki9q19xVzx5m9/0HAz2J+BIhvTKghkgOBI8vKbAkrsZvC8SCTprTrg Xpe20LzlwSDlJKQrG3wX/8hvXpt5q9bRoZz2alBi4ySRj9mi6TiWZGs6FnSe5wfNyVx3 WplA== X-Gm-Message-State: AOAM532Dk/8Ro68A2jxQ1uDyB/5wcq0my9ZC/SAPQMxMcq8fxbJ8HrQ2 tWvh+oKvH+35AiBCZoBAGv0T9F+4PV6ZIQ== X-Google-Smtp-Source: ABdhPJzB4ZpWf0zVXALHZp3ckwxQifvUbAMDMh8p1xAJeUAJQhyEU1Pf+FLYEs+c7PvozHErs3B4RQ== X-Received: by 2002:adf:fa4c:: with SMTP id y12mr54535705wrr.302.1626015403383; Sun, 11 Jul 2021 07:56:43 -0700 (PDT) Received: from pepehands.quns.cam.ac.uk (ds815.queens.cam.ac.uk. [131.111.128.28]) by smtp.googlemail.com with ESMTPSA id b16sm11827632wrs.51.2021.07.11.07.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jul 2021 07:56:43 -0700 (PDT) From: Domagoj Stolfa X-Google-Original-From: Domagoj Stolfa Date: Sun, 11 Jul 2021 15:55:56 +0100 Message-Id: <20210711145558.20441-25-ds815@gmx.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210711145558.20441-1-ds815@gmx.com> References: <20210711145558.20441-1-ds815@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626015502; h=from:from:sender:sender: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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=3A0ZWo2yEbeizDEmq7Y/5Ef2I9W8wpk1yTHcjyQiEkM=; b=t02hPEjJ9O2cessruomCY3cNRH7IDmXZQgTTego/RN5MF9PoUBLW7Nw5lJZjdSP0xlIUeH hSsLYRhVywW/9nSJaLzpTyMND1VhhvSozBy8TB/LtX7NZOXwCDK4i2LLz8a4rCSetrashu FGDZ6Bih0c8FZ0CBQi2NvMTcuuMgN4joXDByTkaAALAsZeOHQDhsicaCp0ojGr/gQyl56D gIKrs52PTjsDNj9ti5yDptU1H2RXcJGK8CIAHorMBstas3bNtoc9YAYE0BYeTqlv/pooMZ wnuYpJxmjV/Z/zgapv7QEGdZeUDRQbwqOGcD09KBYAbAnCw3L5ZHj40HRGGR7Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626015502; a=rsa-sha256; cv=none; b=nG60MJSRU6B5oTUsyctxFbiaPmTXf8ZUmipzOst70AQUnDANjTDojypPuPdu9NPfiTH/T6 py053XlkNSEwWaulsBtceJzx7L+wrQXdTh+gi+VNYf1pini52jIZ3RXQxsMd/i4Fm+Nibi chJ/TqeCJ5Wo95f0Aya6vsZb6UxFsMoWT2omQ/t6rQq9yIuXdBuc0vieuWxlCY25TBhsP8 0S+6bv+2E3fBIVOSGjsj6OvOI6Xe8qJNV5LSArS472JgmRG8H4zyueTnINJBcw6XkGHAIx dOoADsAomGWFhSEXsD2GG9NQ8O/Ff2LLUQWRBy4SVbSifrKDI+JMju0GA8TlfQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=WvacvLE5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 2.70 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=WvacvLE5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 5D4902CD61 X-Spam-Score: 2.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: Y8IHjEqD+/F3 * gnu/packages/crates-io.scm (rust-rust-decimal-1): New public variable. --- gnu/packages/crates-io.scm | 51 ++++++++++++++++++++++++++++++++------ 1 file changed, 44 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 0e7384051a..7f68e4e4eb 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -37925,8 +37925,51 @@ password hashing function.") Currently the conversion uses the Bitcoin base58 alphabet.") (license (list license:asl2.0 license:expat)))) +(define-public rust-rust-decimal-1 + (package + (name "rust-rust-decimal") + (version "1.14.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "rust-decimal" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "10k58hf367626d4akl7ifyk5qwqphfs5x6z1yay22pkyc6w7q4h1")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-arbitrary" ,rust-arbitrary-1) + ("rust-arrayvec" ,rust-arrayvec-0.5) + ("rust-byteorder" ,rust-byteorder-1) + ("rust-bytes" ,rust-bytes-1) + ("rust-diesel" ,rust-diesel-1) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-postgres" ,rust-postgres-0.19) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-tokio-postgres" ,rust-tokio-postgres-0.7)) + #:cargo-development-inputs + (("rust-bincode" ,rust-bincode-1) + ("rust-bytes" ,rust-bytes-1) + ("rust-csv" ,rust-csv-1) + ("rust-futures" ,rust-futures-0.3) + ("rust-serde-derive" ,rust-serde-derive-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-tokio" ,rust-tokio-1)))) + (home-page "https://github.com/paupino/rust-decimal") + (synopsis "Decimal implementation suitable for financial calculations") + (description + "This package provides a decimal implementation written in pure Rust +suitable for financial calculations.") + (license license:expat))) + (define-public rust-rust-decimal-0.10 (package + (inherit rust-rust-decimal-1) (name "rust-rust-decimal") (version "0.10.2") (source @@ -37944,13 +37987,7 @@ password hashing function.") ("rust-lazy-static" ,rust-lazy-static-1) ("rust-num" ,rust-num-0.2) ("rust-postgres" ,rust-postgres-0.15) - ("rust-serde" ,rust-serde-1)))) - (home-page "https://github.com/paupino/rust-decimal") - (synopsis "Decimal implementation suitable for financial calculations") - (description - "This package provides a decimal implementation written in pure Rust -suitable for financial calculations.") - (license license:expat))) + ("rust-serde" ,rust-serde-1)))))) (define-public rust-rust-embed-5 (package -- 2.32.0