diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-09-05 12:01:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-05 12:01:27 +0000 |
commit | dc6009a52776d3ea653638fc59277887ba993ee3 (patch) | |
tree | 222ba91cf4f6e56cc2ea9d54894950520faf748d /pkgs/tools/backup | |
parent | 52fd3468374dab2e2b693846f4fb065182936084 (diff) | |
parent | ce2fb59c6422c6c377095863b7a72720713f2ea8 (diff) | |
download | nixpkgs-dc6009a52776d3ea653638fc59277887ba993ee3.tar nixpkgs-dc6009a52776d3ea653638fc59277887ba993ee3.tar.gz nixpkgs-dc6009a52776d3ea653638fc59277887ba993ee3.tar.bz2 nixpkgs-dc6009a52776d3ea653638fc59277887ba993ee3.tar.lz nixpkgs-dc6009a52776d3ea653638fc59277887ba993ee3.tar.xz nixpkgs-dc6009a52776d3ea653638fc59277887ba993ee3.tar.zst nixpkgs-dc6009a52776d3ea653638fc59277887ba993ee3.zip |
Merge master into staging-next
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 ]; + }; +} |