Skip to content

Commit 5d22e3c

Browse files
prusnakehmry
authored andcommitted
electrum: 3.3.8 -> 4.0.2
1 parent dcde340 commit 5d22e3c

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

pkgs/applications/misc/electrum/default.nix

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
{ stdenv, fetchurl, fetchFromGitHub, wrapQtAppsHook, python3, python3Packages, zbar, secp256k1
2-
, enableQt ? !stdenv.isDarwin
3-
4-
1+
{ stdenv
2+
, fetchurl
3+
, fetchFromGitHub
4+
, wrapQtAppsHook
5+
, python3
6+
, python3Packages
7+
, zbar
8+
, secp256k1
9+
, enableQt ? true
510
# for updater.nix
611
, writeScript
712
, common-updater-scripts
@@ -15,7 +20,7 @@
1520
}:
1621

1722
let
18-
version = "3.3.8";
23+
version = "4.0.2";
1924

2025
libsecp256k1_name =
2126
if stdenv.isLinux then "libsecp256k1.so.0"
@@ -31,7 +36,7 @@ let
3136
owner = "spesmilo";
3237
repo = "electrum";
3338
rev = version;
34-
sha256 = "1di8ba77kgapcys0d7h5nx1qqakv3s60c6sp8skw8p69ramsl73c";
39+
sha256 = "1xpkbard994n1gwl95b558x69k1m1m258bc220nxrajg1pywh90f";
3540

3641
extraPostFetch = ''
3742
mv $out ./all
@@ -46,7 +51,7 @@ python3Packages.buildPythonApplication {
4651

4752
src = fetchurl {
4853
url = "https://download.electrum.org/${version}/Electrum-${version}.tar.gz";
49-
sha256 = "1g00cj1pmckd4xis8r032wmraiv3vd3zc803hnyxa2bnhj8z3bg2";
54+
sha256 = "05ibrr6ysf6fncs1pimhxvyr7d659jwj2r2a9pdd3cmn1dxzy2w1";
5055
};
5156

5257
postUnpack = ''
@@ -57,9 +62,11 @@ python3Packages.buildPythonApplication {
5762
nativeBuildInputs = stdenv.lib.optionals enableQt [ wrapQtAppsHook ];
5863

5964
propagatedBuildInputs = with python3Packages; [
60-
aiorpcx
6165
aiohttp
6266
aiohttp-socks
67+
aiorpcx
68+
attrs
69+
bitstring
6370
dnspython
6471
ecdsa
6572
jsonrpclib-pelix
@@ -78,9 +85,6 @@ python3Packages.buildPythonApplication {
7885
keepkey
7986
trezor
8087
btchip
81-
82-
# TODO plugins
83-
# amodem
8488
] ++ stdenv.lib.optionals enableQt [ pyqt5 qdarkstyle ];
8589

8690
preBuild = ''
@@ -90,7 +94,6 @@ python3Packages.buildPythonApplication {
9094
'' + (if enableQt then ''
9195
substituteInPlace ./electrum/qrscanner.py \
9296
--replace ${libzbar_name} ${zbar.lib}/lib/libzbar${stdenv.hostPlatform.extensions.sharedLibrary}
93-
sed -i 's/qdarkstyle<2.7/qdarkstyle<3.0/' contrib/requirements/requirements.txt
9497
'' else ''
9598
sed -i '/qdarkstyle/d' contrib/requirements/requirements.txt
9699
'');

0 commit comments

Comments
 (0)