Merge pull request #281086 from andersrh/upgrade-electron-cash3
electron-cash: 4.2.10 -> 4.3.1
This commit is contained in:
commit
d3b82fd08d
1 changed files with 6 additions and 10 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue