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

From: Vagrant Cascadian <[email-masked]>
Date: Thu, 12 Jul 2018 15:40:44 -0700

On 2018-07-12, Ludovic Courtès wrote:
> 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")
>     …)

Yes, it is a fork of electrum. The release cycles are independent and
possibly the needed inputs may differ over time. But for now that will
probably work fine.

live well,
  vagrant