guix_mirror_bot pushed a commit to branch master
in repository guix.

commit d27220759c95a988bf439b3cf0d6d0c9d912f1e4
Author: Vinicius Monego <[email protected]>
AuthorDate: Sun Aug 3 21:37:15 2025 -0300

    gnu: electrum: Update to 4.6.1.
    
    * gnu/packages/finance.scm (electrum): Update to 4.6.1.
    [build-system]: Use pyproject-build-system.
    [arguments]: Use Gexp.
    <#:phases>: Add 'relax-deps' phase after 'unpack'. Delete the
    'use-libsecp256k1-input' phase.
    [native-inputs]: Add python-setuptools, python-wheel.
    [inputs]: Remove python-bitstring, python-btchip-python,
    python-ledgerblue. Replace python-pyqt by python-pyqt-6. Add
    electrum-aionostr, python-electrum-ecc, python-jsonpatch, python-pyaes.
    
    Change-Id: I5c39f120d6c0b7ffb54dc63dc27e83659a17ee75
---
 gnu/packages/finance.scm | 41 ++++++++++++++++++++++-------------------
 1 file changed, 22 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 1dc55bfc09..a706fe0240 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -635,7 +635,7 @@ require Coincurve.")
 (define-public electrum
   (package
     (name "electrum")
-    (version "4.4.6")
+    (version "4.6.1")
     (source
      (origin
        (method url-fetch)
@@ -643,42 +643,45 @@ require Coincurve.")
                            version "/Electrum-"
                            version ".tar.gz"))
        (sha256
-        (base32 "1f0hb8xmqv1j9pf82xpyvxnn2dzmi93rhf0sh0iqakja2pbl4707"))
+        (base32 "1h7z019sp99csrj1djmhlm9y7vyyzl7wvar7z9x4jx59lmmvs1xs"))
        (modules '((guix build utils)))
        (snippet
         '(begin
            ;; Delete the bundled dependencies.
            (delete-file-recursively "packages")))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:tests? #f ; no tests
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'relax-deps
+            (lambda _
+              (substitute* "contrib/requirements/requirements.txt"
+                ;; These packages have tight version requirements because
+                ;; the developer does not want to introduce Hatchling in
+                ;; the build environment.  They do work at runtime.
+                (("attrs.*") "attrs")
+                (("dnspython.*") "dnspython")))))))
+    (native-inputs (list python-setuptools python-wheel))
     (inputs
-     (list libsecp256k1
+     (list electrum-aionostr
            python-aiohttp
            python-aiohttp-socks
            python-aiorpcx
            python-attrs
-           python-bitstring
-           python-btchip-python
            python-certifi
            python-cryptography
            python-dnspython
+           python-electrum-ecc
            python-hidapi
-           python-ledgerblue
+           python-jsonpatch
            python-protobuf
-           python-pyqt
+           python-pyaes
+           python-pyqt-6
            python-qdarkstyle
            python-qrcode
            zbar))
-    (arguments
-     `(#:tests? #f                      ; no tests
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'use-libsecp256k1-input
-           (lambda* (#:key inputs #:allow-other-keys)
-             (substitute* "electrum/ecc_fast.py"
-               (("library_paths = \\[\\]")
-                (string-append "library_paths = ['"
-                               (assoc-ref inputs "libsecp256k1")
-                               "/lib/libsecp256k1.so']"))))))))
     (home-page "https://electrum.org/";)
     (synopsis "Bitcoin wallet")
     (description

Reply via email to