2016-09-26 10:09:25 +01:00
|
|
|
{ pkgs, fetchurl, pythonPackages }:
|
2013-05-31 13:08:34 +01:00
|
|
|
|
2016-09-26 10:09:25 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2016-10-06 21:08:35 +01:00
|
|
|
version = "1.9.1";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gmvault";
|
2013-05-31 13:08:34 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/gaubert/gmvault-official-download/downloads/gmvault-v${version}-src.tar.gz";
|
2019-08-15 13:41:18 +01:00
|
|
|
name = "${pname}-${version}.tar.bz";
|
2016-10-06 21:08:35 +01:00
|
|
|
sha256 = "0ffp8df3gdf6lf3pj75hzsmxmvmscppb6bjda58my1n4ppxp1rji";
|
2013-05-31 13:08:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-01-22 11:30:45 +00:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ gdata IMAPClient Logbook chardet ];
|
2013-05-31 13:08:34 +01:00
|
|
|
|
2013-06-05 03:25:20 +01:00
|
|
|
startScript = ./gmvault.py;
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
cat ${startScript} > etc/scripts/gmvault
|
|
|
|
chmod +x etc/scripts/gmvault
|
2015-11-20 12:48:30 +00:00
|
|
|
substituteInPlace setup.py --replace "==" ">="
|
2017-09-06 15:38:46 +01:00
|
|
|
substituteInPlace setup.py --replace "argparse" ""
|
2013-06-05 03:25:20 +01:00
|
|
|
'';
|
|
|
|
|
2013-05-31 13:08:34 +01:00
|
|
|
meta = {
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Backup and restore your gmail account";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://gmvault.org;
|
2013-05-31 13:08:34 +01:00
|
|
|
license = pkgs.lib.licenses.agpl3Plus;
|
|
|
|
};
|
|
|
|
}
|