nix-files/nixpatches/11-electrum-protobuf-fix.patch
colin 8847147a9d Revert "electrum: fix build using upstream patch instead of own"
the proposed fix doesn't work on x86_64

This reverts commit 5058694c5b.
2022-10-03 01:01:39 -07:00

17 lines
609 B
Diff

diff --git a/pkgs/applications/misc/electrum/default.nix b/pkgs/applications/misc/electrum/default.nix
index 46ea57c6193..8f2768fac74 100644
--- a/pkgs/applications/misc/electrum/default.nix
+++ b/pkgs/applications/misc/electrum/default.nix
@@ -111,6 +111,11 @@ python3.pkgs.buildPythonApplication {
wrapQtApp $out/bin/electrum
'';
+ postPatch = ''
+ substituteInPlace contrib/requirements/requirements.txt \
+ --replace "protobuf>=3.12,<4" "protobuf>=3.12"
+ '';
+
checkInputs = with python3.pkgs; [ pytestCheckHook pyaes pycryptodomex ];
pytestFlagsArray = [ "electrum/tests" ];