diff options
author | Jonas Heinrich <onny@project-insanity.org> | 2022-09-05 09:20:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-05 09:20:51 +0200 |
commit | 2e0e743b93b0bb65878595d5e56c506f73a6ac49 (patch) | |
tree | a2aca1b2af4d4dd081a4e52629da971ddda09ca4 /pkgs/tools/backup | |
parent | 209e6666845c47a4859e68b73a703a95fe4a14d0 (diff) | |
parent | c9cb8e3b0c018ff3482652e72af4e5c9fdc26a8c (diff) | |
download | nixpkgs-2e0e743b93b0bb65878595d5e56c506f73a6ac49.tar nixpkgs-2e0e743b93b0bb65878595d5e56c506f73a6ac49.tar.gz nixpkgs-2e0e743b93b0bb65878595d5e56c506f73a6ac49.tar.bz2 nixpkgs-2e0e743b93b0bb65878595d5e56c506f73a6ac49.tar.lz nixpkgs-2e0e743b93b0bb65878595d5e56c506f73a6ac49.tar.xz nixpkgs-2e0e743b93b0bb65878595d5e56c506f73a6ac49.tar.zst nixpkgs-2e0e743b93b0bb65878595d5e56c506f73a6ac49.zip |
Merge pull request #173077 from austinbutler/gyb
gyb: init at 1.62
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r-- | pkgs/tools/backup/gyb/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/tools/backup/gyb/default.nix b/pkgs/tools/backup/gyb/default.nix new file mode 100644 index 00000000000..2c82f40f583 --- /dev/null +++ b/pkgs/tools/backup/gyb/default.nix @@ -0,0 +1,50 @@ +{ lib +, fetchFromGitHub +, python3 +, python3Packages +}: + +python3Packages.buildPythonApplication rec { + pname = "gyb"; + version = "1.62"; + format = "other"; + + src = fetchFromGitHub { + owner = "GAM-team"; + repo = "got-your-back"; + rev = "v${version}"; + sha256 = "sha256-HaexQ0y5i9Q0xgjzAX6E2xeyeDvARo7/Gx3ytohRT7U="; + }; + + propagatedBuildInputs = with python3Packages; [ + google-api-python-client + google-auth + google-auth-oauthlib + google-auth-httplib2 + httplib2 + ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/{bin,${python3.sitePackages}} + mv gyb.py "$out/bin/gyb" + mv *.py "$out/${python3.sitePackages}/" + + runHook postInstall + ''; + + checkPhase = '' + $out/bin/gyb --help > /dev/null + ''; + + meta = with lib; { + description = '' + Got Your Back (GYB) is a command line tool for backing up your Gmail + messages to your computer using Gmail's API over HTTPS. + ''; + homepage = "https://github.com/GAM-team/got-your-back"; + license = licenses.asl20; + maintainers = with maintainers; [ austinbutler ]; + }; +} |