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

From: [email-masked] (Ludovic Courtès)
Date: Fri, 13 Jul 2018 00:03:20 +0200

Hello,

Vagrant Cascadian <[email-masked]> skribis:

> * gnu/packages/finance.scm (electron-cash): New variable.

[...]

> +    (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/")

This seems to be pretty much the same thing as ‘electrum’.  Should we
define it as:

  (package
    (inherit electrum)
    (name "electron-cash")
    …)

?

Thanks,
Ludo’.