depot/third_party/nixpkgs/pkgs/applications/version-management/git-annex-remote-googledrive/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

49 lines
1 KiB
Nix

{ lib
, annexremote
, buildPythonApplication
, drivelib
, fetchPypi
, gitpython
, humanfriendly
, tenacity
, setuptools
, distutils
}:
buildPythonApplication rec {
pname = "git-annex-remote-googledrive";
version = "1.3.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "0rwjcdvfgzdlfgrn1rrqwwwiqqzyh114qddrbfwd46ld5spry6r1";
};
build-system = [ setuptools ];
propagatedBuildInputs = [
annexremote
drivelib
gitpython
tenacity
humanfriendly
distutils
];
# while git-annex does come with a testremote command that *could* be used,
# testing this special remote obviously depends on authenticating with google
doCheck = false;
pythonImportsCheck = [
"git_annex_remote_googledrive"
];
meta = with lib; {
description = "Git-annex special remote for Google Drive";
homepage = "https://github.com/Lykos153/git-annex-remote-googledrive";
license = licenses.gpl3Only;
maintainers = with maintainers; [ gravndal ];
mainProgram = "git-annex-remote-googledrive";
};
}