2016-02-19 13:12:11 +01:00
|
|
|
{ pkgs, fetchurl, buildPythonApplication, pythonPackages }:
|
2013-05-31 14:08:34 +02:00
|
|
|
|
2016-02-19 13:12:11 +01:00
|
|
|
buildPythonApplication rec {
|
2013-05-31 14:08:34 +02:00
|
|
|
version = "1.8.1-beta";
|
|
|
|
name = "gmvault-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/gaubert/gmvault-official-download/downloads/gmvault-v${version}-src.tar.gz";
|
|
|
|
name = "${name}.tar.bz";
|
|
|
|
sha256 = "0b575cnrd6jzcpa05mbn2swzcy0r9ck09pkhs4ydj6d3ir52j80c";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2015-11-20 13:48:30 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ gdata IMAPClient Logbook
|
|
|
|
argparse ];
|
2013-05-31 14:08:34 +02:00
|
|
|
|
2013-06-05 04:25:20 +02:00
|
|
|
startScript = ./gmvault.py;
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
cat ${startScript} > etc/scripts/gmvault
|
|
|
|
chmod +x etc/scripts/gmvault
|
2015-11-20 13:48:30 +01:00
|
|
|
substituteInPlace setup.py --replace "==" ">="
|
2013-06-05 04:25:20 +02:00
|
|
|
'';
|
|
|
|
|
2013-05-31 14:08:34 +02:00
|
|
|
meta = {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Backup and restore your gmail account";
|
2013-05-31 14:08:34 +02:00
|
|
|
homepage = "http://gmvault.org";
|
|
|
|
license = pkgs.lib.licenses.agpl3Plus;
|
|
|
|
};
|
|
|
|
}
|