-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
electrum: fails to build on x86_64 #193997
Comments
bisected to: that's the staging-next merge though, so a lot of surface area. however, we appear to address a very similar build failure over in pkgs/development/python-modules/aioesphomeapi/default.nix by doing: postPatch = ''
substituteInPlace requirements.txt \
--replace "protobuf>=3.12.2,<4.0" "protobuf>=3.12.2"
''; i'm not sure how to test this same patch on electrum since it doesn't have any requirements.txt file. |
oh just kidding, Electrum just places its requirements.txt in a different location. the patch below fixes the build when applied to master, and the application starts but i didn't test any functionality that i know touches protobuf. not sure how concerned i should be about overriding a pinned dep (i'm not a python dev): 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" ]; |
Fix in #194112 |
Steps To Reproduce
Steps to reproduce the behavior:
git checkout 7446e0b9ff66506be32c476aba8b39b90c958c1f
nix build './#electrum'
Build log
Additional context
Notify maintainers
Metadata
The text was updated successfully, but these errors were encountered: