2017-05-05 21:44:28 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2018-01-09 16:59:05 +01:00
|
|
|
, python3Packages
|
2017-05-05 21:44:28 +02:00
|
|
|
}:
|
|
|
|
|
2018-01-09 16:59:05 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-02-15 10:08:27 +01:00
|
|
|
pname = "electrum-ltc";
|
2019-09-11 19:27:11 +02:00
|
|
|
version = "3.3.8.1";
|
2017-05-05 21:44:28 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://electrum-ltc.org/download/Electrum-LTC-${version}.tar.gz";
|
2018-05-03 18:27:21 +02:00
|
|
|
sha256 = "0kxcx1xf6h9z8x0k483d6ykpnmfr30n6z3r6lgqxvbl42pq75li7";
|
2017-05-05 21:44:28 +02:00
|
|
|
};
|
|
|
|
|
2019-02-15 10:08:27 +01:00
|
|
|
nativeBuildInputs = with python3Packages; [ pyqt5 ];
|
|
|
|
|
2018-01-09 16:59:05 +01:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
pyaes
|
2017-05-05 21:44:28 +02:00
|
|
|
ecdsa
|
|
|
|
pbkdf2
|
|
|
|
requests
|
|
|
|
qrcode
|
2018-01-09 16:59:05 +01:00
|
|
|
py_scrypt
|
|
|
|
pyqt5
|
2017-09-05 17:11:41 +02:00
|
|
|
protobuf
|
2017-12-10 15:27:06 +01:00
|
|
|
dnspython
|
2018-01-09 16:59:05 +01:00
|
|
|
jsonrpclib-pelix
|
2017-12-27 12:48:11 +01:00
|
|
|
pysocks
|
2017-05-05 21:44:28 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
sed -i 's,usr_share = .*,usr_share = "'$out'/share",g' setup.py
|
2018-01-09 16:59:05 +01:00
|
|
|
pyrcc5 icons.qrc -o gui/qt/icons_rc.py
|
2017-05-05 21:44:28 +02:00
|
|
|
# Recording the creation timestamps introduces indeterminism to the build
|
|
|
|
sed -i '/Created: .*/d' gui/qt/icons_rc.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/electrum-ltc help >/dev/null
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
2018-01-09 18:27:09 +01:00
|
|
|
platforms = platforms.linux;
|
2019-09-16 17:43:19 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-05-05 21:44:28 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|