diff options
author | Austin Butler <austinabutler@gmail.com> | 2022-05-14 18:00:46 -0700 |
---|---|---|
committer | Austin Butler <austinabutler@gmail.com> | 2022-05-14 18:00:46 -0700 |
commit | c9cb8e3b0c018ff3482652e72af4e5c9fdc26a8c (patch) | |
tree | 88e37f62e4946f3378dca37732545df21105e46b /pkgs/tools/backup | |
parent | 82c1de01159a68b5d0655097bd62a98b9375edf2 (diff) | |
download | nixpkgs-c9cb8e3b0c018ff3482652e72af4e5c9fdc26a8c.tar nixpkgs-c9cb8e3b0c018ff3482652e72af4e5c9fdc26a8c.tar.gz nixpkgs-c9cb8e3b0c018ff3482652e72af4e5c9fdc26a8c.tar.bz2 nixpkgs-c9cb8e3b0c018ff3482652e72af4e5c9fdc26a8c.tar.lz nixpkgs-c9cb8e3b0c018ff3482652e72af4e5c9fdc26a8c.tar.xz nixpkgs-c9cb8e3b0c018ff3482652e72af4e5c9fdc26a8c.tar.zst nixpkgs-c9cb8e3b0c018ff3482652e72af4e5c9fdc26a8c.zip |
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 ]; + }; +} |