1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/tools/networking/gmvault/default.nix
Bjørn Forsman 3f7d2f72e7 gmvault: 1.8.1-beta -> 1.9.1
Adds support for OAuth2 (among other things).
2016-10-06 23:52:33 +02:00

32 lines
828 B
Nix

{ 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 ];
startScript = ./gmvault.py;
patchPhase = ''
cat ${startScript} > etc/scripts/gmvault
chmod +x etc/scripts/gmvault
substituteInPlace setup.py --replace "==" ">="
'';
meta = {
description = "Backup and restore your gmail account";
homepage = "http://gmvault.org";
license = pkgs.lib.licenses.agpl3Plus;
};
}