GNU bug report logs - #74039
[0/5] Add ledger hardware wallet support

Previous Next

Package: guix-patches;

Reported by: jesse <at> eisses.email

Date: Sat, 26 Oct 2024 23:55:01 UTC

Severity: normal

To reply to this bug, email your comments to 74039 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sat, 26 Oct 2024 23:55:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to jesse <at> eisses.email:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 26 Oct 2024 23:55:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jesse <at> eisses.email
To: guix-patches <at> gnu.org
Cc: Jesse Eisses <jesse <at> eisses.email>
Subject: [0/5] Add ledger hardware wallet support
Date: Sun, 27 Oct 2024 01:53:14 +0200
From: Jesse Eisses <jesse <at> eisses.email>

This patch adds ledger hardware wallet support to electrum.

Several additional Python packages are needed this:
https://electrum.readthedocs.io/en/latest/hardware-linux.html

After adding the dependencies to electrum it's possible to access ledger
within electrum.

Jesse Eisses (5):
  gnu: Add python-ledgercomm
  gnu: Add python-coincurve
  gnu: Add python-bip32
  gnu: Add python-ledger-bitcoin
  gnu: Add ledger hardware wallet support to electrum

 gnu/packages/finance.scm | 99 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 99 insertions(+)


base-commit: 269e4034fcaf55324187efffb6ed5ba14d5e9286
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 00:00:02 GMT) Full text and rfc822 format available.

Message #8 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: jesse <at> eisses.email
To: 74039 <at> debbugs.gnu.org
Cc: Jesse Eisses <jesse <at> eisses.email>
Subject: [1/5] gnu: Add python-ledgercomm
Date: Sun, 27 Oct 2024 01:58:31 +0200
From: Jesse Eisses <jesse <at> eisses.email>

Change-Id: If62d5425c346063787da81a47907f5ee84a749ab
---
 gnu/packages/finance.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index d4594a1083..59a11e6925 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1100,6 +1100,24 @@ (define-public python-btchip-python
 Nano dongle.")
     (license license:asl2.0)))
 
+(define-public python-ledgercomm
+  (package
+    (name "python-ledgercomm")
+    (version "1.2.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "ledgercomm" version))
+              (sha256
+               (base32
+                "019f13h59yxxhyhvi5xz8b20pfhazbvn9sgx5x98mp2shj6cks8y"))))
+    (arguments
+     (list #:tests? #f))
+    (build-system pyproject-build-system)
+    (home-page "https://github.com/LedgerHQ/ledgercomm")
+    (synopsis "Library to communicate with Ledger Nano S/X and Speculos")
+    (description "Library to communicate with Ledger Nano S/X and Speculos")
+    (license license:expat)))
+
 (define-public python-trezor
   (package
     (name "python-trezor")
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 00:00:03 GMT) Full text and rfc822 format available.

Message #11 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: jesse <at> eisses.email
To: 74039 <at> debbugs.gnu.org
Cc: Jesse Eisses <jesse <at> eisses.email>
Subject: [2/5] gnu: Add python-coincurve
Date: Sun, 27 Oct 2024 01:58:32 +0200
From: Jesse Eisses <jesse <at> eisses.email>

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")
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 00:00:03 GMT) Full text and rfc822 format available.

Message #14 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: jesse <at> eisses.email
To: 74039 <at> debbugs.gnu.org
Cc: Jesse Eisses <jesse <at> eisses.email>
Subject: [5/5] gnu: Add ledger hardware wallet support to electrum
Date: Sun, 27 Oct 2024 01:58:35 +0200
From: Jesse Eisses <jesse <at> eisses.email>

Change-Id: I348533df6611a47dca5fd933eed19cebdfca025d
---
 gnu/packages/finance.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 317d4592f3..84373452c4 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -132,6 +132,7 @@ (define-module (gnu packages finance)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages security-token)
+  #:use-module (gnu packages serialization)
   #:use-module (gnu packages sphinx)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages tex)
@@ -579,15 +580,18 @@ (define-public electrum
            python-attrs
            python-bitstring
            python-btchip-python
+           python-cbor
            python-certifi
            python-cryptography
            python-dnspython
            python-hidapi
            python-ledgerblue
+           python-ledger-bitcoin
            python-protobuf
            python-pyqt
            python-qdarkstyle
            python-qrcode
+           libusb
            zbar))
     (arguments
      `(#:tests? #f                      ; no tests
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 00:00:04 GMT) Full text and rfc822 format available.

Message #17 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: jesse <at> eisses.email
To: 74039 <at> debbugs.gnu.org
Cc: Jesse Eisses <jesse <at> eisses.email>
Subject: [3/5] gnu: Add python-bip32
Date: Sun, 27 Oct 2024 01:58:33 +0200
From: Jesse Eisses <jesse <at> eisses.email>

Change-Id: I6f6e5a2048d9d124808bc53df9b493e61c0bcf07
---
 gnu/packages/finance.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index c3ff34e0cc..2711987673 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1148,6 +1148,29 @@ (define-public python-coincurve
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public python-bip32
+  (package
+    (name "python-bip32")
+    (version "3.4")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/darosior/python-bip32")
+                    (commit "1492d39312f1d9630363c292f6ab8beb8ceb16dd")))
+              (sha256
+               (base32
+                "048zwh1i11jbs6h8j8sqbl7kx5hcyhr7i61mq5snl3fpbr3hmid3"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-base58 python-coincurve))
+    (inputs (list gnu-make))
+    (arguments
+     (list #:tests? #f))
+    (home-page "https://github.com/darosior/python-bip32")
+    (synopsis "Minimalistic implementation of the BIP32 key derivation scheme")
+    (description
+     "Minimalistic implementation of the BIP32 key derivation scheme")
+    (license license:expat)))
+
 (define-public python-trezor
   (package
     (name "python-trezor")
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 00:00:04 GMT) Full text and rfc822 format available.

Message #20 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: jesse <at> eisses.email
To: 74039 <at> debbugs.gnu.org
Cc: Jesse Eisses <jesse <at> eisses.email>
Subject: [4/5] gnu: Add python-ledger-bitcoin
Date: Sun, 27 Oct 2024 01:58:34 +0200
From: Jesse Eisses <jesse <at> eisses.email>

Change-Id: Ic7956e573712e478981de47466468f339b153741
---
 gnu/packages/finance.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 2711987673..317d4592f3 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1171,6 +1171,30 @@ (define-public python-bip32
      "Minimalistic implementation of the BIP32 key derivation scheme")
     (license license:expat)))
 
+(define-public python-ledger-bitcoin
+  (package
+    (name "python-ledger-bitcoin")
+    (version "0.2.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "ledger_bitcoin" version))
+              (sha256
+               (base32
+                "1drd15h4vsr5ysrmrrhh2lalzmnxkvi82x6a433yr8c2vf6zsynx"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list #:tests? #f
+            #:phases
+            #~(modify-phases %standard-phases
+                (delete 'sanity-check))))
+    (propagated-inputs (list python-bip32 python-coincurve python-ledgercomm
+                             python-packaging python-typing-extensions))
+    (inputs (list python-ledgercomm))
+    (home-page "https://github.com/LedgerHQ/app-bitcoin-new")
+    (synopsis "Client for Ledger Nano Bitcoin application")
+    (description "Client for Ledger Nano Bitcoin application")
+    (license license:asl2.0)))
+
 (define-public python-trezor
   (package
     (name "python-trezor")
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 08:08:01 GMT) Full text and rfc822 format available.

Message #23 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: Jesse Eisses <jesse <at> eisses.email>
To: 74039 <at> debbugs.gnu.org
Subject: [0/5] Add ledger hardware wallet support
Date: Sun, 27 Oct 2024 09:06:57 +0100
Hi there,

I just realize that I forgot to add my name to the list of contributors,
and also to prefix the email subject with PATCH. Apologies, still
getting the hang of this 😅

Not sure how to fix this. Should I submit a whole new patch series to this
thread, or even start a new issue with the PATCH prefix?

Thanks,

Jesse

jesse <at> eisses.email writes:

> From: Jesse Eisses <jesse <at> eisses.email>
>
> Change-Id: I348533df6611a47dca5fd933eed19cebdfca025d
> ---
>  gnu/packages/finance.scm | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
> index 317d4592f3..84373452c4 100644
> --- a/gnu/packages/finance.scm
> +++ b/gnu/packages/finance.scm
> @@ -132,6 +132,7 @@ (define-module (gnu packages finance)
>    #:use-module (gnu packages qt)
>    #:use-module (gnu packages readline)
>    #:use-module (gnu packages security-token)
> +  #:use-module (gnu packages serialization)
>    #:use-module (gnu packages sphinx)
>    #:use-module (gnu packages sqlite)
>    #:use-module (gnu packages tex)
> @@ -579,15 +580,18 @@ (define-public electrum
>             python-attrs
>             python-bitstring
>             python-btchip-python
> +           python-cbor
>             python-certifi
>             python-cryptography
>             python-dnspython
>             python-hidapi
>             python-ledgerblue
> +           python-ledger-bitcoin
>             python-protobuf
>             python-pyqt
>             python-qdarkstyle
>             python-qrcode
> +           libusb
>             zbar))
>      (arguments
>       `(#:tests? #f                      ; no tests




Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 14:20:02 GMT) Full text and rfc822 format available.

Message #26 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: James Smith <jsubuntuxp <at> disroot.org>
To: Jesse Eisses via Guix-patches via <guix-patches <at> gnu.org>
Cc: 74039 <at> debbugs.gnu.org, Jesse Eisses <jesse <at> eisses.email>
Subject: Re: [bug#74039] [0/5] Add ledger hardware wallet support
Date: Sun, 27 Oct 2024 07:15:39 -0700
Jesse Eisses via Guix-patches via <guix-patches <at> gnu.org> writes:

> Hi there,
>
> I just realize that I forgot to add my name to the list of contributors,
> and also to prefix the email subject with PATCH. Apologies, still
> getting the hang of this 😅
>
> Not sure how to fix this. Should I submit a whole new patch series to this
> thread, or even start a new issue with the PATCH prefix?
>
> Thanks,
>
> Jesse

Hi Jesse,

You can just add your name to the list, rebase the change to your first
commit, and resend this patch series to this issue with a v2. For
example, my workflow with Emacs and Magit is as follows:

1. Add copyright to gnu/packages/finance.scm after the last one.
2. Using Magit, stage your changes, press "c" for commit, followed by "F"
for instant fixup, the select the commit to apply the changes to (I.E.
for copyright, it'll typically be patch 1/5).
3. Once you're done making changes, use "git send-email" to send a new
set of patches. For example, you'll use "git send-email -5 -v2
--to=74039 <at> debbugs.gnu.org".

For more details, you can check the relevant section of the manual at
https://guix.gnu.org/manual/devel/en/html_node/Sending-a-Patch-Series.html

Hope that helps,
James




Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 14:20:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 21:09:02 GMT) Full text and rfc822 format available.

Message #32 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jesse Eisses <jesse <at> eisses.email>
To: James Smith <jsubuntuxp <at> disroot.org>
Cc: 74039 <at> debbugs.gnu.org,
 Jesse Eisses via Guix-patches via <guix-patches <at> gnu.org>
Subject: Re: [bug#74039] [0/5] Add ledger hardware wallet support
Date: Sun, 27 Oct 2024 22:08:02 +0100
Hi James,

Thanks for that! New patch set is incoming

- Jesse

James Smith <jsubuntuxp <at> disroot.org> writes:

> Jesse Eisses via Guix-patches via <guix-patches <at> gnu.org> writes:
>
>> Hi there,
>>
>> I just realize that I forgot to add my name to the list of contributors,
>> and also to prefix the email subject with PATCH. Apologies, still
>> getting the hang of this 😅
>>
>> Not sure how to fix this. Should I submit a whole new patch series to this
>> thread, or even start a new issue with the PATCH prefix?
>>
>> Thanks,
>>
>> Jesse
>
> Hi Jesse,
>
> You can just add your name to the list, rebase the change to your first
> commit, and resend this patch series to this issue with a v2. For
> example, my workflow with Emacs and Magit is as follows:
>
> 1. Add copyright to gnu/packages/finance.scm after the last one.
> 2. Using Magit, stage your changes, press "c" for commit, followed by "F"
> for instant fixup, the select the commit to apply the changes to (I.E.
> for copyright, it'll typically be patch 1/5).
> 3. Once you're done making changes, use "git send-email" to send a new
> set of patches. For example, you'll use "git send-email -5 -v2
> --to=74039 <at> debbugs.gnu.org".
>
> For more details, you can check the relevant section of the manual at
> https://guix.gnu.org/manual/devel/en/html_node/Sending-a-Patch-Series.html
>
> Hope that helps,
> James




Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 21:09:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 21:15:02 GMT) Full text and rfc822 format available.

Message #38 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: jesse <at> eisses.email
To: 74039 <at> debbugs.gnu.org
Cc: Jesse Eisses <jesse <at> eisses.email>
Subject: [PATCH v2 1/5] gnu: Add python-ledgercomm
Date: Sun, 27 Oct 2024 22:13:12 +0100
From: Jesse Eisses <jesse <at> eisses.email>

Change-Id: If62d5425c346063787da81a47907f5ee84a749ab
---
 gnu/packages/finance.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index d4594a1083..262380d13e 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -39,6 +39,7 @@
 ;;; Copyright © 2023 Attila Lendvai <attila <at> lendvai.name>
 ;;; Copyright © 2024 Saku Laesvuori <saku <at> laesvuori.fi>
 ;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus <at> gmail.com>
+;;; Copyright © 2024 Jesse Eisses <jesse <at> eisses.email>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1100,6 +1101,24 @@ (define-public python-btchip-python
 Nano dongle.")
     (license license:asl2.0)))
 
+(define-public python-ledgercomm
+  (package
+    (name "python-ledgercomm")
+    (version "1.2.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "ledgercomm" version))
+              (sha256
+               (base32
+                "019f13h59yxxhyhvi5xz8b20pfhazbvn9sgx5x98mp2shj6cks8y"))))
+    (arguments
+     (list #:tests? #f))
+    (build-system pyproject-build-system)
+    (home-page "https://github.com/LedgerHQ/ledgercomm")
+    (synopsis "Library to communicate with Ledger Nano S/X and Speculos")
+    (description "Library to communicate with Ledger Nano S/X and Speculos")
+    (license license:expat)))
+
 (define-public python-trezor
   (package
     (name "python-trezor")

base-commit: 269e4034fcaf55324187efffb6ed5ba14d5e9286
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 21:15:02 GMT) Full text and rfc822 format available.

Message #41 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: jesse <at> eisses.email
To: 74039 <at> debbugs.gnu.org
Cc: Jesse Eisses <jesse <at> eisses.email>
Subject: [PATCH v2 2/5] gnu: Add python-coincurve
Date: Sun, 27 Oct 2024 22:13:13 +0100
From: Jesse Eisses <jesse <at> eisses.email>

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")
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 21:15:03 GMT) Full text and rfc822 format available.

Message #44 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: jesse <at> eisses.email
To: 74039 <at> debbugs.gnu.org
Cc: Jesse Eisses <jesse <at> eisses.email>
Subject: [PATCH v2 3/5] gnu: Add python-bip32
Date: Sun, 27 Oct 2024 22:13:14 +0100
From: Jesse Eisses <jesse <at> eisses.email>

Change-Id: I6f6e5a2048d9d124808bc53df9b493e61c0bcf07
---
 gnu/packages/finance.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index d96055601d..7e030daca9 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1149,6 +1149,29 @@ (define-public python-coincurve
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public python-bip32
+  (package
+    (name "python-bip32")
+    (version "3.4")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/darosior/python-bip32")
+                    (commit "1492d39312f1d9630363c292f6ab8beb8ceb16dd")))
+              (sha256
+               (base32
+                "048zwh1i11jbs6h8j8sqbl7kx5hcyhr7i61mq5snl3fpbr3hmid3"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-base58 python-coincurve))
+    (inputs (list gnu-make))
+    (arguments
+     (list #:tests? #f))
+    (home-page "https://github.com/darosior/python-bip32")
+    (synopsis "Minimalistic implementation of the BIP32 key derivation scheme")
+    (description
+     "Minimalistic implementation of the BIP32 key derivation scheme")
+    (license license:expat)))
+
 (define-public python-trezor
   (package
     (name "python-trezor")
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 21:15:03 GMT) Full text and rfc822 format available.

Message #47 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: jesse <at> eisses.email
To: 74039 <at> debbugs.gnu.org
Cc: Jesse Eisses <jesse <at> eisses.email>
Subject: [PATCH v2 4/5] gnu: Add python-ledger-bitcoin
Date: Sun, 27 Oct 2024 22:13:15 +0100
From: Jesse Eisses <jesse <at> eisses.email>

Change-Id: Ic7956e573712e478981de47466468f339b153741
---
 gnu/packages/finance.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 7e030daca9..4be438a6d6 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1172,6 +1172,30 @@ (define-public python-bip32
      "Minimalistic implementation of the BIP32 key derivation scheme")
     (license license:expat)))
 
+(define-public python-ledger-bitcoin
+  (package
+    (name "python-ledger-bitcoin")
+    (version "0.2.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "ledger_bitcoin" version))
+              (sha256
+               (base32
+                "1drd15h4vsr5ysrmrrhh2lalzmnxkvi82x6a433yr8c2vf6zsynx"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list #:tests? #f
+            #:phases
+            #~(modify-phases %standard-phases
+                (delete 'sanity-check))))
+    (propagated-inputs (list python-bip32 python-coincurve python-ledgercomm
+                             python-packaging python-typing-extensions))
+    (inputs (list python-ledgercomm))
+    (home-page "https://github.com/LedgerHQ/app-bitcoin-new")
+    (synopsis "Client for Ledger Nano Bitcoin application")
+    (description "Client for Ledger Nano Bitcoin application")
+    (license license:asl2.0)))
+
 (define-public python-trezor
   (package
     (name "python-trezor")
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sun, 27 Oct 2024 21:15:04 GMT) Full text and rfc822 format available.

Message #50 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: jesse <at> eisses.email
To: 74039 <at> debbugs.gnu.org
Cc: Jesse Eisses <jesse <at> eisses.email>
Subject: [PATCH v2 5/5] gnu: Add ledger hardware wallet support to electrum
Date: Sun, 27 Oct 2024 22:13:16 +0100
From: Jesse Eisses <jesse <at> eisses.email>

Change-Id: I348533df6611a47dca5fd933eed19cebdfca025d
---
 gnu/packages/finance.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 4be438a6d6..f6fcaedef2 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -133,6 +133,7 @@ (define-module (gnu packages finance)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages security-token)
+  #:use-module (gnu packages serialization)
   #:use-module (gnu packages sphinx)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages tex)
@@ -580,15 +581,18 @@ (define-public electrum
            python-attrs
            python-bitstring
            python-btchip-python
+           python-cbor
            python-certifi
            python-cryptography
            python-dnspython
            python-hidapi
            python-ledgerblue
+           python-ledger-bitcoin
            python-protobuf
            python-pyqt
            python-qdarkstyle
            python-qrcode
+           libusb
            zbar))
     (arguments
      `(#:tests? #f                      ; no tests
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Mon, 28 Oct 2024 09:37:01 GMT) Full text and rfc822 format available.

Message #53 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: 74039 <at> debbugs.gnu.org
Subject: Comments
Date: Mon, 28 Oct 2024 10:35:26 +0100
Hello Jesse,

thanks for your contribution, which passes QA and looks mainly good!

QA runs "guix lint":
https://qa.guix.gnu.org/issue/74039
which complains about the following:
"the source file name should contain the package name"

Maybe you could run "guix lint" on your different packages and see to
which one it applies? Probably python-bip32 with its source taken from git.

Maybe you could use pypi there as well? When trying a "guix import pypi bip32"
I get a version 4.0 instead of 3.2; would this work as well?
Otherwise, there are examples in the Guix source of how to force a
descriptive name for the git checkout.

The description should consist of complete sentences and be a bit longer
and more descriptive, maybe a short paragraph. Often it can be taken from
the project website, after stripping out the marketing speech.

Please also adapt the commit messages to the Guix style.
Running "./etc/committer.scm" (instead of "git commit") could be an
option, it usually works well for adding new packages.

Looking forward to a v3,

Andreas





Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Wed, 22 Jan 2025 13:03:02 GMT) Full text and rfc822 format available.

Message #56 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: 74039 <at> debbugs.gnu.org
Cc: Jesse Eisses <jesse <at> eisses.email>
Subject: Re: Comments
Date: Wed, 22 Jan 2025 14:02:30 +0100
Hello,

only recently did I learn that debbugs does not forward comments to the
authors of issues; so I am resending them again with the author in cc.

Andreas


Am Mon, Oct 28, 2024 at 10:35:26AM +0100 schrieb Andreas Enge:
> Hello Jesse,
> 
> thanks for your contribution, which passes QA and looks mainly good!
> 
> QA runs "guix lint":
> https://qa.guix.gnu.org/issue/74039
> which complains about the following:
> "the source file name should contain the package name"
> 
> Maybe you could run "guix lint" on your different packages and see to
> which one it applies? Probably python-bip32 with its source taken from git.
> 
> Maybe you could use pypi there as well? When trying a "guix import pypi bip32"
> I get a version 4.0 instead of 3.2; would this work as well?
> Otherwise, there are examples in the Guix source of how to force a
> descriptive name for the git checkout.
> 
> The description should consist of complete sentences and be a bit longer
> and more descriptive, maybe a short paragraph. Often it can be taken from
> the project website, after stripping out the marketing speech.
> 
> Please also adapt the commit messages to the Guix style.
> Running "./etc/committer.scm" (instead of "git commit") could be an
> option, it usually works well for adding new packages.
> 
> Looking forward to a v3,
> 
> Andreas





Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Wed, 22 Jan 2025 20:14:01 GMT) Full text and rfc822 format available.

Message #59 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: Jesse Eisses <jesse <at> eisses.email>
To: Andreas Enge <andreas <at> enge.fr>
Cc: 74039 <at> debbugs.gnu.org
Subject: Re: Comments
Date: Wed, 22 Jan 2025 21:13:08 +0100
Hi Andreas,

I had indeed missed the comment. Thanks a lot for the feedback, I will look into it!

Kind regards,

Jesse

Andreas Enge <andreas <at> enge.fr> writes:

> Hello,
>
> only recently did I learn that debbugs does not forward comments to the
> authors of issues; so I am resending them again with the author in cc.
>
> Andreas
>
>
> Am Mon, Oct 28, 2024 at 10:35:26AM +0100 schrieb Andreas Enge:
>> Hello Jesse,
>> 
>> thanks for your contribution, which passes QA and looks mainly good!
>> 
>> QA runs "guix lint":
>> https://qa.guix.gnu.org/issue/74039
>> which complains about the following:
>> "the source file name should contain the package name"
>> 
>> Maybe you could run "guix lint" on your different packages and see to
>> which one it applies? Probably python-bip32 with its source taken from git.
>> 
>> Maybe you could use pypi there as well? When trying a "guix import pypi bip32"
>> I get a version 4.0 instead of 3.2; would this work as well?
>> Otherwise, there are examples in the Guix source of how to force a
>> descriptive name for the git checkout.
>> 
>> The description should consist of complete sentences and be a bit longer
>> and more descriptive, maybe a short paragraph. Often it can be taken from
>> the project website, after stripping out the marketing speech.
>> 
>> Please also adapt the commit messages to the Guix style.
>> Running "./etc/committer.scm" (instead of "git commit") could be an
>> option, it usually works well for adding new packages.
>> 
>> Looking forward to a v3,
>> 
>> Andreas




Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Wed, 26 Mar 2025 16:35:02 GMT) Full text and rfc822 format available.

Message #62 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: Jesse Eisses <jesse <at> eisses.email>
Cc: 74039 <at> debbugs.gnu.org
Subject: Re: Comments
Date: Wed, 26 Mar 2025 17:33:56 +0100
Hello Jesse,

Am Wed, Jan 22, 2025 at 09:13:08PM +0100 schrieb Jesse Eisses:
> I had indeed missed the comment. Thanks a lot for the feedback, I will look into it!

just a friendly reminder, if you are still interested in this patch
series, it would be nice if you could send an updated version (and keep
me in cc).

Andreas





Information forwarded to guix-patches <at> gnu.org:
bug#74039; Package guix-patches. (Sat, 29 Mar 2025 09:10:02 GMT) Full text and rfc822 format available.

Message #65 received at 74039 <at> debbugs.gnu.org (full text, mbox):

From: Jesse Eisses <jesse <at> eisses.email>
To: Andreas Enge <andreas <at> enge.fr>
Cc: 74039 <at> debbugs.gnu.org
Subject: Re: Comments
Date: Sat, 29 Mar 2025 10:09:24 +0100
Hi Andreas,

Thanks for the reminder, appreciate it. This is still on my list to
finish, I will keep you in the CC of the updates.

Cheers,

Jesse

Andreas Enge <andreas <at> enge.fr> writes:

> Hello Jesse,
>
> Am Wed, Jan 22, 2025 at 09:13:08PM +0100 schrieb Jesse Eisses:
>> I had indeed missed the comment. Thanks a lot for the feedback, I will look into it!
>
> just a friendly reminder, if you are still interested in this patch
> series, it would be nice if you could send an updated version (and keep
> me in cc).
>
> Andreas




This bug report was last modified 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.