[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/18: gnu: electron-cash: Apply new style to inputs and use gexps.
From: |
guix-commits |
Subject: |
13/18: gnu: electron-cash: Apply new style to inputs and use gexps. |
Date: |
Tue, 7 Jun 2022 09:18:40 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit f336f69f28c218e228003d283326fa78541d0ebc
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Jun 6 16:21:47 2022 -0400
gnu: electron-cash: Apply new style to inputs and use gexps.
* gnu/packages/finance.scm (electron-cash)[phases]: Use gexps.
[inputs]: Use new style.
---
gnu/packages/finance.scm | 101 ++++++++++++++++++++++++-----------------------
1 file changed, 51 insertions(+), 50 deletions(-)
diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 1afd51ff89..96dfc34075 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -28,6 +28,7 @@
;;; Copyright © 2021 John Kehayias <john.kehayias@protonmail.com>
;;; Copyright © 2022 Kyle Meyer <kyle@kyleam.com>
;;; Copyright © 2022 Aleksandr Vityazev <avityazev@posteo.org>
+;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -598,66 +599,66 @@ other machines/servers. Electrum does not download the
Bitcoin blockchain.")
(sha256
(base32 "0axpypq9byda61rp3sznrq24b24qxbfwk56j75qp06s1ackg0pcv"))))
(build-system python-build-system)
- (inputs
- `(("libevent" ,libevent)
- ("libsecp256k1" ,libsecp256k1-bitcoin-cash)
- ("openssl" ,openssl)
- ("python-cython" ,python-cython)
- ("python-dateutil" ,python-dateutil)
- ("python-dnspython" ,python-dnspython)
- ("python-ecdsa" ,python-ecdsa)
- ("python-hidapi" ,python-hidapi)
- ("python-jsonrpclib-pelix" ,python-jsonrpclib-pelix)
- ("python-keepkey" ,python-keepkey)
- ("python-pathvalidate" ,python-pathvalidate)
- ("python-protobuf" ,python-protobuf)
- ("python-pyaes" ,python-pyaes)
- ("python-pyqt" ,python-pyqt)
- ("python-pysocks" ,python-pysocks)
- ("python-qdarkstyle" ,python-qdarkstyle)
- ("python-qrcode" ,python-qrcode)
- ("python-requests" ,python-requests)
- ("python-stem" ,python-stem)
- ("python-trezor" ,python-trezor)
- ("qtsvg" ,qtsvg)
- ("zlib" ,zlib)))
(arguments
- `(#:tests? #f ; no tests
- #:modules ((guix build python-build-system)
+ (list
+ #:tests? #f ; no tests
+ #:modules '((guix build python-build-system)
(guix build qt-utils)
(guix build utils))
- #:imported-modules (,@%python-build-system-modules
+ #:imported-modules `(,@%python-build-system-modules
(guix build qt-utils))
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'create-output-directories
- (lambda* (#:key outputs #:allow-other-keys)
- ;; setup.py installs to ~/.local/share if this doesn't exist.
- (mkdir-p (string-append (assoc-ref outputs "out") "/share"))))
- (add-after 'unpack 'use-libsecp256k1-input
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "electroncash/secp256k1.py"
- (("library_paths = .* 'libsecp256k1.so.0'.")
- (string-append "library_paths = ('"
- (assoc-ref inputs "libsecp256k1")
- "/lib/libsecp256k1.so.0'")))))
- (add-after 'unpack 'relax-requirements
- (lambda _
- (substitute* "contrib/requirements/requirements.txt"
- (("qdarkstyle==2\\.6\\.8")
- "qdarkstyle"))))
- (add-after 'install 'wrap-qt
- (lambda* (#:key outputs inputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (wrap-qt-program "electron-cash" #:output out #:inputs inputs))
- #t)))))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'create-output-directories
+ (lambda _
+ ;; setup.py installs to ~/.local/share if this doesn't exist.
+ (mkdir-p (string-append #$output "/share"))))
+ (add-after 'unpack 'use-libsecp256k1-input
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "electroncash/secp256k1.py"
+ (("libsecp256k1.so.0")
+ (search-input-file inputs "lib/libsecp256k1.so.0")))))
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "contrib/requirements/requirements.txt"
+ (("qdarkstyle==2\\.6\\.8")
+ "qdarkstyle"))))
+ (add-after 'install 'wrap-qt
+ (lambda* (#:key outputs inputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (wrap-qt-program "electron-cash"
+ #:output out #:inputs inputs)))))))
+ (inputs
+ (list libevent
+ libsecp256k1-bitcoin-cash
+ openssl
+ python-cython
+ python-dateutil
+ python-dnspython
+ python-ecdsa
+ python-hidapi
+ python-jsonrpclib-pelix
+ python-keepkey
+ python-pathvalidate
+ python-protobuf
+ python-pyaes
+ python-pyqt
+ python-pysocks
+ python-qdarkstyle
+ python-qrcode
+ python-requests
+ python-stem
+ python-trezor
+ qtsvg
+ zlib))
(home-page "https://electroncash.org/")
(synopsis "Bitcoin Cash wallet")
(description
"Electroncash is a lightweight Bitcoin Cash client, based on a
client-server
protocol. It supports Simple Payment Verification (SPV) and deterministic key
generation from a seed. Your secret keys are encrypted and are never sent to
-other machines/servers. Electroncash does not download the Bitcoin Cash
blockchain.")
+other machines/servers. Electroncash does not download the Bitcoin Cash
+blockchain.")
(license license:expat)))
(define-public monero
- 18/18: gnu: offlate: Fix build., (continued)
- 18/18: gnu: offlate: Fix build., guix-commits, 2022/06/07
- 01/18: gnu: python-radon: Update to 5.1.0., guix-commits, 2022/06/07
- 02/18: gnu: python-pep8-naming: Update to 0.13.0., guix-commits, 2022/06/07
- 05/18: gnu: xenon: Update to 0.9.0, rename and relocate., guix-commits, 2022/06/07
- 06/18: gnu: python-flask-combo-jsonapi: Skip failing test., guix-commits, 2022/06/07
- 07/18: gnu: python-flask-restx: Skip networking dependent test., guix-commits, 2022/06/07
- 10/18: gnu: python-trezor: Add python-hidapi optional dependency., guix-commits, 2022/06/07
- 09/18: gnu: python-trezor-agent: Delete trailing #t and honor TESTS?., guix-commits, 2022/06/07
- 11/18: gnu: trezor-agent: Update to 0.14.4., guix-commits, 2022/06/07
- 12/18: gnu: electron-cash: Update to 4.2.10., guix-commits, 2022/06/07
- 13/18: gnu: electron-cash: Apply new style to inputs and use gexps.,
guix-commits <=
- 14/18: gnu: nikola: Update to 8.2.2., guix-commits, 2022/06/07
- 15/18: gnu: python-xunitparser: Update to 1.3.4., guix-commits, 2022/06/07
- 16/18: gnu: python-pygmsh: Update to 7.1.17., guix-commits, 2022/06/07
- 17/18: gnu: python-pygit2: Update to 1.9.2 and enable tests., guix-commits, 2022/06/07