mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 08:31:59 +00:00
32 lines
826 B
Nix
32 lines
826 B
Nix
{ pkgs, fetchurl, buildPythonPackage, pythonPackages }:
|
|
|
|
buildPythonPackage rec {
|
|
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;
|
|
|
|
propagatedBuildInputs = with pythonPackages; [ gdata IMAPClient Logbook
|
|
argparse ];
|
|
|
|
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;
|
|
};
|
|
}
|