electrum: Patch compat with python trezor>=0.9.0

This commit is contained in:
adisbladis 2018-02-22 18:43:00 +08:00
parent 52e419bb2f
commit 831ef4756e
No known key found for this signature in database
GPG Key ID: ED58F95069B004F5

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, python3, python3Packages, zbar }:
{ stdenv, fetchurl, python3, python3Packages, zbar, fetchpatch }:
python3Packages.buildPythonApplication rec {
name = "electrum-${version}";
@ -9,6 +9,15 @@ python3Packages.buildPythonApplication rec {
sha256 = "01dnqiazjl2avrmdiq68absjvcfv24446y759z2s9dwk8ywzjkrg";
};
patches = [
# Trezor compat patch should be included in electrum > 3.0.6
(fetchpatch {
name = "trezor-compat.patch";
url = "https://patch-diff.githubusercontent.com/raw/spesmilo/electrum/pull/3621.patch";
sha256 = "1bk1r2ikhnvw1fpfh71y4za2lnskcbkv50k8ynjxi5slx2wrfpl0";
})
];
propagatedBuildInputs = with python3Packages; [
dnspython
ecdsa