diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2024-02-23 16:20:42 -0300 |
---|---|---|
committer | Pavol Rusnak <pavol@rusnak.io> | 2024-02-23 16:39:18 -0300 |
commit | dec3b9ac113df5e6d912f13dd08229b2545766ba (patch) | |
tree | b125bb63c8c699d29d3a9e3cc3e415b8d3817110 /pkgs/applications/misc/electrum | |
parent | 629acbdc085a80c006f10b03f9af4308bb2e9ca1 (diff) |
electrum: 4.5.0 -> 4.5.3
Diffstat (limited to 'pkgs/applications/misc/electrum')
-rw-r--r-- | pkgs/applications/misc/electrum/default.nix | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/applications/misc/electrum/default.nix b/pkgs/applications/misc/electrum/default.nix index 91820ce964dd2..986681d5a819f 100644 --- a/pkgs/applications/misc/electrum/default.nix +++ b/pkgs/applications/misc/electrum/default.nix @@ -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 |