gnu: electrum: Fix build.

* gnu/packages/finance.scm (electrum)[arguments]: Add
  'relax-dnspython-version-requirement' phase.
This commit is contained in:
Guillaume Le Vaillant 2021-11-13 13:42:40 +01:00
parent a12a41cdd1
commit b7de4098ef
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -548,6 +548,14 @@ (define-public electrum
(("sys\\.prefix")
(format #f "\"~a\"" out)))
#t)))
(add-after 'unpack 'relax-dnspython-version-requirement
;; The version requirement for dnspython>=2.0,<2.1 makes the
;; sanity-check phase fail, but the application seems to be working
;; fine with dnspython 2.1 (the version we have currently).
(lambda _
(substitute* "contrib/requirements/requirements.txt"
(("dnspython>=.*")
"dnspython"))))
(add-after 'unpack 'use-libsecp256k1-input
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "electrum/ecc_fast.py"