electrum: 4.5.0 -> 4.5.3

This commit is contained in:
Pavol Rusnak 2024-02-23 16:20:42 -03:00
parent 629acbdc08
commit dec3b9ac11
No known key found for this signature in database
GPG key ID: 91F3B339B9A02A3D

View file

@ -12,7 +12,7 @@
}:
let
version = "4.5.0";
version = "4.5.3";
libsecp256k1_name =
if stdenv.isLinux then "libsecp256k1.so.{v}"
@ -29,11 +29,11 @@ let
owner = "spesmilo";
repo = "electrum";
rev = version;
sha256 = "sha256-IEKuHUlH+dg+8w+n7XV7hdDOPOFZ/lpUsIlYldwR44Y=";
sha256 = "sha256-Lr6ynHAbyaiaxYAWU5j5Wh5acxO5HkP1/jpnFrL4j68=";
postFetch = ''
mv $out ./all
mv ./all/electrum/tests $out
mv ./all/tests $out
'';
};
@ -45,12 +45,12 @@ python3.pkgs.buildPythonApplication {
src = fetchurl {
url = "https://download.electrum.org/${version}/Electrum-${version}.tar.gz";
sha256 = "sha256-s4FH8FtPg4wepU/5XI062dAN9fCYR1xJGwrxftCSKzw=";
sha256 = "sha256-kej0msc7SB+51ad5xZrT8MMEY5rfYOGqum6RO1gBH5s=";
};
postUnpack = ''
# can't symlink, tests get confused
cp -ar ${tests} $sourceRoot/electrum/tests
cp -ar ${tests} $sourceRoot/tests
'';
nativeBuildInputs = lib.optionals enableQt [ wrapQtAppsHook ];
@ -85,6 +85,10 @@ python3.pkgs.buildPythonApplication {
qdarkstyle
];
checkInputs = with python3.pkgs; lib.optionals enableQt [
pyqt6
];
postPatch = ''
# make compatible with protobuf4 by easing dependencies ...
substituteInPlace ./contrib/requirements/requirements.txt \
@ -115,7 +119,7 @@ python3.pkgs.buildPythonApplication {
nativeCheckInputs = with python3.pkgs; [ pytestCheckHook pyaes pycryptodomex ];
pytestFlagsArray = [ "electrum/tests" ];
pytestFlagsArray = [ "tests" ];
postCheck = ''
$out/bin/electrum help >/dev/null