From patchwork Sun Oct 27 21:13:13 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: 69567 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 E45D427BBEA; Sun, 27 Oct 2024 21:15:03 +0000 (GMT) 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 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 6371327BBE2 for ; Sun, 27 Oct 2024 21:15:03 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5Aal-0005Wm-H3; Sun, 27 Oct 2024 17:14:31 -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 1t5Aai-0005TI-KI for guix-patches@gnu.org; Sun, 27 Oct 2024 17:14:28 -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 1t5Aah-0007Yo-I5 for guix-patches@gnu.org; Sun, 27 Oct 2024 17:14:28 -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=KcUXGuxA4Vn2s0bp3VCbHRVtIGHPoTnAbdmIVDvAE3U=; b=fIQ9W3y27AHNF6H4p/F6F7ARrFZBJMotj7NIsO9OFFQ/wcrB4DsxnCUJre+6qxAGzlVEX91T2aiehk2aHykFMljkv3PwhQ3O21v0+wlq56maMu3UuiihRe0qW6DdhgHbAlt/qdIoWBXlMdPyK99PSoyeZmoEIHbxpmdKNzCFJyQAHc484pENPSALzTS/bKbUdcgSodMhYVkXHABTyUBP7SwOLMc02Fefj4JWMXJDz5pPra/J6qY3MYEisVQyXHwtIHLadyknkBBSoMQoLTBesQ4N9TfxACx8Hxr+KCWKOwtIuEze4XN0/UYJIi040I/drILqgEpLbwJLzOS0OwSCsA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5AbG-00033X-N8 for guix-patches@gnu.org; Sun, 27 Oct 2024 17:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#74039] [PATCH v2 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 21:15:02 +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.173006366711647 (code B ref 74039); Sun, 27 Oct 2024 21:15:02 +0000 Received: (at 74039) by debbugs.gnu.org; 27 Oct 2024 21:14:27 +0000 Received: from localhost ([127.0.0.1]:46557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5Aah-00031l-7O for submit@debbugs.gnu.org; Sun, 27 Oct 2024 17:14:27 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]:48400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5Aac-000314-9C for 74039@debbugs.gnu.org; Sun, 27 Oct 2024 17:14:22 -0400 Authentication-Results: purelymail.com; auth=pass DKIM-Signature: a=rsa-sha256; b=lN/4MHDijf+IpRqf1Z5jUXClNfUXaPctceLKdGYqPwQbgpvsggg7NmIcNYhrEosDSgkBWPQJV0yM6YONzdBdWEiA1idPlCCvwdgHINJT5l/C0SpfQTrkbjs8qTgCn56UWzJmA5/MuP8S3V8FkPHmJUhnriNAf1NSzkgrmnKzLkX7yv+d4Mmz3QmPW93m2JFvW3wQcwYN5KFFmtB72RM0kEtIymlpNPIkvbksrdq/VBQ8iLQcj/tuaHSITpxUJNAbmLkOUKpb4E5QzjGwkyTb74bbl9YguOMaGC6/YzFTxJTUAigju8W/p1Q6CxMK8rVHhSlosr32mQCi60pElrh9vw==; s=purelymail2; d=eisses.email; v=1; bh=Vb9TOKFrwwJrPQSMJi6vmCE9Lmi15B8ifaYrMuGptdo=; h=Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=ESabaV9LDOJVrZ99E90WX6RQbB+y2yfZpIvspXyxpfuUkY4DwGV26UAMDE4iUQ/Bo/SbSvu4nwBz2PZ5HkihWnv+vRF1bWxgTKgF+g/oFQe9nRBUys5iOqQa1sQRC8N0IAJT1D6wLFUDjfexmCKv1mWdEKQNc7KsgB2NOCQSwplPQuq9qs4wh9lujsvdNWy4OKvAWklslbc37mKDG1R6yAfwl5HmHNZemnz5qXnsUmY6RO1tcJ9H0EWJokmwicM9S7ItsTPxrCkkmu4DyYeqkyWQ+Jyk115R5syDDrnfbTObTK5t+MYuhsG8dMgEgvHZ6HQ0QkDNLU2Q9Uac30wCgQ==; s=purelymail2; d=purelymail.com; v=1; bh=Vb9TOKFrwwJrPQSMJi6vmCE9Lmi15B8ifaYrMuGptdo=; 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 -698800746; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 27 Oct 2024 21:13:39 +0000 (UTC) Date: Sun, 27 Oct 2024 22:13:13 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: <42cbc6b9509ad22d60d78258413b304fc957c886.1730063595.git.jesse@eisses.email> References: <42cbc6b9509ad22d60d78258413b304fc957c886.1730063595.git.jesse@eisses.email> 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 262380d13e..d96055601d 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -110,6 +110,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) @@ -1119,6 +1120,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")