nixpkgs/pkgs/applications/misc/electron-cash/default.nix

82 lines
1.8 KiB
Nix
Raw Normal View History

2019-12-02 22:30:55 +00:00
{ lib, fetchFromGitHub, python3Packages, qtbase, wrapQtAppsHook }:
2017-09-27 15:44:35 +00:00
2017-12-13 19:55:40 +00:00
python3Packages.buildPythonApplication rec {
pname = "electron-cash";
2019-12-02 22:30:55 +00:00
version = "4.0.11";
2017-09-27 15:44:35 +00:00
2019-12-02 22:30:55 +00:00
src = fetchFromGitHub {
owner = "Electron-Cash";
repo = "Electron-Cash";
rev = version;
sha256 = "1k4zbaj0g8bgk1l5vrb835a8bqfay2707bcb4ql2vx4igcwpb680";
2017-09-27 15:44:35 +00:00
};
2017-12-13 19:55:40 +00:00
propagatedBuildInputs = with python3Packages; [
dnspython
2017-09-27 15:44:35 +00:00
ecdsa
2017-12-13 19:55:40 +00:00
jsonrpclib-pelix
matplotlib
2017-09-27 15:44:35 +00:00
pbkdf2
pyaes
pycrypto
2017-12-13 19:55:40 +00:00
pyqt5
2017-09-27 15:44:35 +00:00
pysocks
qrcode
requests
tlslite-ng
qdarkstyle
2017-09-27 15:44:35 +00:00
# plugins
keepkey
trezor
btchip
2017-09-27 15:44:35 +00:00
];
nativeBuildInputs = [ wrapQtAppsHook ];
2018-09-12 16:03:36 +00:00
2018-01-07 20:35:58 +00:00
postPatch = ''
substituteInPlace contrib/requirements/requirements.txt \
--replace "qdarkstyle<2.6" "qdarkstyle<3"
2018-01-07 20:35:58 +00:00
substituteInPlace setup.py \
--replace "(share_dir" "(\"share\""
2017-09-27 15:44:35 +00:00
'';
2019-05-02 23:17:58 +00:00
checkInputs = with python3Packages; [
pytest
];
checkPhase = ''
unset HOME
pytest lib/tests
'';
2017-12-13 19:55:40 +00:00
2017-09-27 15:44:35 +00:00
postInstall = ''
substituteInPlace $out/share/applications/electron-cash.desktop \
--replace "Exec=electron-cash" "Exec=$out/bin/electron-cash"
2017-09-27 15:44:35 +00:00
'';
2019-09-26 14:23:57 +00:00
postFixup = ''
wrapQtApp $out/bin/electron-cash
'';
2017-09-27 15:44:35 +00:00
doInstallCheck = true;
installCheckPhase = ''
2018-09-12 16:03:36 +00:00
$out/bin/electron-cash help >/dev/null
2017-09-27 15:44:35 +00:00
'';
meta = with lib; {
description = "A Bitcoin Cash SPV Wallet";
2017-09-27 15:44:35 +00:00
longDescription = ''
An easy-to-use Bitcoin Cash client featuring wallets generated from
2017-09-27 15:44:35 +00:00
mnemonic seeds (in addition to other, more advanced, wallet options)
and the ability to perform transactions without downloading a copy
of the blockchain.
'';
homepage = https://www.electroncash.org/;
platforms = platforms.linux;
maintainers = with maintainers; [ lassulus nyanloutre ];
2017-09-27 15:44:35 +00:00
license = licenses.mit;
};
}