2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, python3Packages
|
2020-09-25 04:45:31 +00:00
|
|
|
, wrapQtAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "electrum-ltc";
|
|
|
|
version = "3.3.8.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://electrum-ltc.org/download/Electrum-LTC-${version}.tar.gz";
|
|
|
|
sha256 = "0kxcx1xf6h9z8x0k483d6ykpnmfr30n6z3r6lgqxvbl42pq75li7";
|
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
nativeBuildInputs = with python3Packages; [ pyqt5 wrapQtAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
pyaes
|
|
|
|
ecdsa
|
|
|
|
pbkdf2
|
|
|
|
requests
|
|
|
|
qrcode
|
|
|
|
py_scrypt
|
|
|
|
pyqt5
|
|
|
|
protobuf
|
|
|
|
dnspython
|
|
|
|
jsonrpclib-pelix
|
|
|
|
pysocks
|
2020-11-03 02:18:15 +00:00
|
|
|
trezor
|
|
|
|
btchip
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
sed -i 's,usr_share = .*,usr_share = "'$out'/share",g' setup.py
|
|
|
|
pyrcc5 icons.qrc -o gui/qt/icons_rc.py
|
|
|
|
# Recording the creation timestamps introduces indeterminism to the build
|
|
|
|
sed -i '/Created: .*/d' gui/qt/icons_rc.py
|
|
|
|
'';
|
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
2020-09-25 04:45:31 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/electrum-ltc help >/dev/null
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Litecoin thin client";
|
|
|
|
longDescription = ''
|
|
|
|
Electrum-LTC is a simple, but powerful Litecoin wallet. A twelve-word
|
|
|
|
security passphrase (or “seed”) leaves intruders stranded and your peace
|
|
|
|
of mind intact. Keep it on paper, or in your head... and never worry
|
|
|
|
about losing your litecoins to theft or hardware failure. No waiting, no
|
|
|
|
lengthy blockchain downloads and no syncing to the network.
|
|
|
|
'';
|
|
|
|
homepage = "https://electrum-ltc.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|