@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, python3, python3Packages, zbar }:
1+{ stdenv, fetchurl, python3, python3Packages, zbar, fetchpatch }:
22
33python3Packages.buildPythonApplication rec {
44 name = "electrum-${version}";
@@ -9,6 +9,15 @@ python3Packages.buildPythonApplication rec {
99 sha256 = "01dnqiazjl2avrmdiq68absjvcfv24446y759z2s9dwk8ywzjkrg";
1010 };
1111
12+ patches = [
13+ # Trezor compat patch should be included in electrum > 3.0.6
14+ (fetchpatch {
15+ name = "trezor-compat.patch";
16+ url = "https://patch-diff.githubusercontent.com/raw/spesmilo/electrum/pull/3621.patch";
17+ sha256 = "1bk1r2ikhnvw1fpfh71y4za2lnskcbkv50k8ynjxi5slx2wrfpl0";
18+ })
19+ ];
20+
1221 propagatedBuildInputs = with python3Packages; [
1322 dnspython
1423 ecdsa