electrum: 2.6.4 -> 2.7.8

This commit is contained in:
Joachim Fasting 2016-10-15 00:50:19 +02:00
parent 9237596519
commit d2238cc9f0
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08

View File

@ -2,11 +2,11 @@
pythonPackages.buildPythonApplication rec {
name = "electrum-${version}";
version = "2.6.4";
version = "2.7.8";
src = fetchurl {
url = "https://download.electrum.org/${version}/Electrum-${version}.tar.gz";
sha256 = "0rpqpspmrmgm0bhsnlnhlwhag6zg8hnv5bcw5vkqmv86891kpd9a";
sha256 = "0p4dx5fks68avzxkknawv094xxf7322hgm068js4v56qirvxm563";
};
propagatedBuildInputs = with pythonPackages; [
@ -33,14 +33,13 @@ pythonPackages.buildPythonApplication rec {
# amodem
];
preInstall = ''
mkdir -p $out/share
sed -i 's@usr_share = .*@usr_share = os.getenv("out")+"/share"@' setup.py
preBuild = ''
sed -i 's,usr_share = .*,usr_share = "'$out'/share",g' setup.py
pyrcc4 icons.qrc -o gui/qt/icons_rc.py
'';
doCheck = true;
checkPhase = ''
doInstallCheck = true;
installCheckPhase = ''
$out/bin/electrum help >/dev/null
'';