From patchwork Sat Oct 26 23:58:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 69527 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 C749427BBEA; Sun, 27 Oct 2024 00:59:49 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED 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 2F04227BBE2 for ; Sun, 27 Oct 2024 00:59:48 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t4qgu-0001z6-UR; Sat, 26 Oct 2024 19:59:32 -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 1t4qgr-0001xq-LR for guix-patches@gnu.org; Sat, 26 Oct 2024 19:59:29 -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 1t4qgr-0003gv-D7 for guix-patches@gnu.org; Sat, 26 Oct 2024 19:59:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=9uqYbUYg1X0aYgUNOD9hf0Jq5Yk+2FBauvmfHN28VYk=; b=MA/SduTiZaDfxS5BY8LFyQrdc+h3qna5uPeh9qzfW94X2irxrGFA/TsOf8eN3PgAwiR4GJMI8HTiXqnYPT4jPXWN1xGK7/AzBt7loY36iK3SwwVkMUxdpkpBxQ2xgDbbOSWhPWKkluZaP8pIgzQvEeo2BBFj/KFSDujCpcfadeeOrcx7jF+VFovwqoT1HChVvVTIgvZwQBWoioKy7j2CZrfg5gcxxnm7WvC2sXIp5FecFStEhU1m1Q+UFPckvn4XzPj3/4ph9uBXyEiHbwebVUPBwOwao11ZwFYELJTLNdfjWYXEjmTGo/l04n27qqEft4xisEDBEe8wdGqFO4spCQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t4qhP-0001tL-CN for guix-patches@gnu.org; Sat, 26 Oct 2024 20:00:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#74039] [2/5] gnu: Add python-coincurve Resent-From: jesse@eisses.email Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Oct 2024 00:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74039 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 74039@debbugs.gnu.org Cc: Jesse Eisses Received: via spool by 74039-submit@debbugs.gnu.org id=B74039.17299871767156 (code B ref 74039); Sun, 27 Oct 2024 00:00:03 +0000 Received: (at 74039) by debbugs.gnu.org; 26 Oct 2024 23:59:36 +0000 Received: from localhost ([127.0.0.1]:43221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4qgx-0001rM-SU for submit@debbugs.gnu.org; Sat, 26 Oct 2024 19:59:36 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]:54898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4qgw-0001qu-A0 for 74039@debbugs.gnu.org; Sat, 26 Oct 2024 19:59:34 -0400 Authentication-Results: purelymail.com; auth=pass DKIM-Signature: a=rsa-sha256; b=B/L1M3OWQUPT8nDgkOev/BfvSt0wZ4Jaukt7Kj4FvAVPY/oK87wwpOx+6CeuIJPHf+3Oqj53jM/H0zERdg/0/IsvAdFMkhBo5xd3w1wi0qZVtgy/LHJKmpK8Q3bUk6jbgYTTNBAVBcJOGUACTWEhna1NOMQryJrzRmj1QXz2U0AHb3b+GtOD86ap571ZxDHuM1CsKhzTo42D+tQiCDOsfSB1xk+AaPtemN15iMP/tAs43CFL4guoKk5LkIdSt2p2fuQm2QKa2LiiuK19YKUSRZ01ngFm1HKRGuHg1JQUrIM25YurztrpmVzbzOx38paKy495oiU5MgfTFNg6xBm4XQ==; s=purelymail2; d=eisses.email; v=1; bh=D222oR5bbb2k81X5ax3pCaLAy2YKZT3hVX29eZ5YjLU=; h=Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=DHLfvzRMtgEkN2vgJ7g+sdYCBLeogencM8iOeCCRe0JxGd1CHR+K0Y8df8Y6Ptuvt/A7PEXZhwy5du/q2yszUvo2M483r3GjHMRG8gB/gvRaxbHbwDla51z9IJPfOp2AAVVtcT8uXuIQVSy6kWrKoKGU/dfpfqjW7EVvK1bsOtWgT6DOUK5GEuGuUXeEwJhBofS/Q5wByMTcZQYDA5mlvIxxjcFob7hupPmwA5oXbr72PeItrh4/vt2TPmH0vR5ci+MwzGUxyogfILAmSmUDpSqwCHnyyvtdk8uOzUAtyqbtcS0/jLJAvSM/MrkB8FI14dZL3aLnVhiS7ziUzjUA1Q==; s=purelymail2; d=purelymail.com; v=1; bh=D222oR5bbb2k81X5ax3pCaLAy2YKZT3hVX29eZ5YjLU=; h=Feedback-ID:Received:From:To:Subject:Date; Feedback-ID: 18307:3403:null:purelymail X-Pm-Original-To: 74039@debbugs.gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1826857107; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sat, 26 Oct 2024 23:58:50 +0000 (UTC) Date: Sun, 27 Oct 2024 01:58:32 +0200 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 X-MIME-Autoconverted: from 8bit to quoted-printable by Purelymail 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: , Reply-to: jesse@eisses.email X-ACL-Warn: , jesse--- via Guix-patches X-Patchwork-Original-From: jesse--- via Guix-patches via From: "ashish.is--- via Guix-patches\" via" 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 From: Jesse Eisses Change-Id: I2acb09def9193247b1e4169321cf22bdb77c9960 --- gnu/packages/finance.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 59a11e6925..c3ff34e0cc 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -109,6 +109,7 @@ (define-module (gnu packages finance) #:use-module (gnu packages jemalloc) #:use-module (gnu packages libedit) #:use-module (gnu packages libevent) + #:use-module (gnu packages libffi) #:use-module (gnu packages libunwind) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) @@ -1118,6 +1119,35 @@ (define-public python-ledgercomm (description "Library to communicate with Ledger Nano S/X and Speculos") (license license:expat))) +(define-public python-coincurve + (package + (name "python-coincurve") + (version "18.0.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "coincurve" version)) + (sha256 + (base32 + "1hagr7hicfc1hkg5lfxj0di53bp3rbpq0rz5h279v80pwjpjcrn8")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-asn1crypto python-cffi)) + (home-page "https://pypi.org/project/coincurve") + (inputs (list libsecp256k1)) + (native-inputs (list autoconf automake libtool pkg-config)) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (delete 'check) + (add-after 'unpack 'use-libsecp256k1-input + (lambda* (#:key inputs #:allow-other-keys) + (let ((lib-dir (string-append + (assoc-ref inputs "libsecp256k1") "/lib"))) + (setenv "LIB_DIR" lib-dir))))))) + (synopsis "Cross-platform Python CFFI bindings for libsecp256k1") + (description "Cross-platform Python CFFI bindings for libsecp256k1") + (license (list license:asl2.0 + license:expat)))) + (define-public python-trezor (package (name "python-trezor")