diff --git a/pkgs/applications/misc/electron-cash/default.nix b/pkgs/applications/misc/electron-cash/default.nix index 16eb89cb5a84..7760b57dd3b9 100644 --- a/pkgs/applications/misc/electron-cash/default.nix +++ b/pkgs/applications/misc/electron-cash/default.nix @@ -1,15 +1,15 @@ { lib, stdenv, fetchFromGitHub, python3Packages, wrapQtAppsHook -, secp256k1 }: +, secp256k1, qtwayland }: python3Packages.buildPythonApplication rec { pname = "electron-cash"; - version = "4.2.10"; + version = "4.3.1"; src = fetchFromGitHub { owner = "Electron-Cash"; repo = "Electron-Cash"; rev = "refs/tags/${version}"; - sha256 = "sha256-m13wJlNBG3BxOdKUyd3qmIhFBM7263FzMKr5lfD1tys="; + sha256 = "sha256-xOyj5XerOwgfvI0qj7+7oshDvd18h5IeZvcJTis8nWo="; }; propagatedBuildInputs = with python3Packages; [ @@ -27,6 +27,7 @@ python3Packages.buildPythonApplication rec { certifi pathvalidate dnspython + bitcoinrpc # requirements-binaries pyqt5 @@ -47,6 +48,8 @@ python3Packages.buildPythonApplication rec { nativeBuildInputs = [ wrapQtAppsHook ]; + buildInputs = [ ] ++ lib.optional stdenv.isLinux qtwayland; + postPatch = '' substituteInPlace contrib/requirements/requirements.txt \ --replace "qdarkstyle==2.6.8" "qdarkstyle<3" @@ -55,13 +58,6 @@ python3Packages.buildPythonApplication rec { --replace "(share_dir" "(\"share\"" ''; - nativeCheckInputs = with python3Packages; [ pytest ]; - - checkPhase = '' - unset HOME - pytest electroncash/tests - ''; - postInstall = lib.optionalString stdenv.isLinux '' substituteInPlace $out/share/applications/electron-cash.desktop \ --replace "Exec=electron-cash" "Exec=$out/bin/electron-cash"