Subject: bug#32130: closed (Re: [bug#32130] [PATCH] gnu: Add electron-cash.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 16 Jul 2018 13:37:02 +0000

Your bug report

#32130: [PATCH] gnu: Add electron-cash.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
32130: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32130
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#32130] [PATCH] gnu: Add electron-cash.
From: [email-masked] (Ludovic Courtès)
To: Vagrant Cascadian <[email-masked]>
Cc: [email-masked]
Date: Mon, 16 Jul 2018 15:36:25 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Vagrant Cascadian <[email-masked]> skribis:

> From 9e655d9cb2898b3ccdf2350b49ab75e6e542c297 Mon Sep 17 00:00:00 2001
> From: Vagrant Cascadian <[email-masked]>
> Date: Fri, 13 Jul 2018 22:39:16 +0000
> Subject: [PATCH] gnu: Add electron-cash.
>
> * gnu/packages/finance.scm (electron-cash): New variable.

Applied, thanks!

Ludo'.

Subject: [PATCH] gnu: Add electron-cash.
From: Vagrant Cascadian <[email-masked]>
To: [email-masked]
Date: Wed, 11 Jul 2018 22:05:13 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/finance.scm (electron-cash): New variable.
---
 gnu/packages/finance.scm | 52 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 1d3e6a7a6..594c835d3 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -279,6 +279,58 @@ It's not clear at the moment whether one day it will be possible to
 do so.")
     (license license:agpl3+)))
 
+(define-public electron-cash
+  (package
+    (name "electron-cash")
+    (version "3.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://electroncash.org/downloads/"
+                           version
+                           "/win-linux/ElectronCash-"
+                           version
+                           ".tar.gz"))
+       (sha256
+        (base32
+         "1x487hyacdm1qhik1mhfimr4jwcwz7sgsbkh11awrb6j19sxdxym"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           ;; Delete the bundled dependencies.
+           (delete-file-recursively "packages")
+           #t))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-pyaes" ,python-pyaes)
+       ("python-pysocks" ,python-pysocks)
+       ("python-sip" ,python-sip)
+       ("python-pyqt" ,python-pyqt)
+       ("python-ecdsa" ,python-ecdsa)
+       ("python-pbkdf2" ,python-pbkdf2)
+       ("python-requests" ,python-requests)
+       ("python-qrcode" ,python-qrcode)
+       ("python-protobuf" ,python-protobuf)
+       ("python-dnspython" ,python-dnspython)
+       ("python-jsonrpclib-pelix" ,python-jsonrpclib-pelix)))
+    (arguments
+     `(#:tests? #f ;; package doesn't have any tests
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'patch-home
+           (lambda* (#:key outputs #:allow-other-keys)
+             (substitute* "setup.py"
+               (("~/.local/share")
+                (string-append (assoc-ref outputs "out") "/local/share"))))))))
+    (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.")
+    (license license:expat)))
+
 (define-public electrum
   (package
     (name "electrum")
-- 
2.18.0