nixpkgs/pkgs/tools/networking/gmvault/default.nix

33 lines
881 B
Nix
Raw Normal View History

{ pkgs, fetchurl, pythonPackages }:
pythonPackages.buildPythonApplication rec {
version = "1.9.1";
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 = "0ffp8df3gdf6lf3pj75hzsmxmvmscppb6bjda58my1n4ppxp1rji";
};
doCheck = false;
propagatedBuildInputs = with pythonPackages; [ gdata IMAPClient Logbook
argparse chardet ];
2013-06-05 04:25:20 +02:00
startScript = ./gmvault.py;
patchPhase = ''
cat ${startScript} > etc/scripts/gmvault
chmod +x etc/scripts/gmvault
substituteInPlace setup.py --replace "==" ">="
2017-09-06 16:38:46 +02:00
substituteInPlace setup.py --replace "argparse" ""
2013-06-05 04:25:20 +02:00
'';
meta = {
description = "Backup and restore your gmail account";
homepage = http://gmvault.org;
license = pkgs.lib.licenses.agpl3Plus;
};
}