2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
|
|
|
, annexremote
|
2022-12-17 10:02:37 +00:00
|
|
|
, buildPythonApplication
|
2021-04-05 15:23:46 +00:00
|
|
|
, drivelib
|
2022-12-17 10:02:37 +00:00
|
|
|
, fetchPypi
|
|
|
|
, gitpython
|
2021-04-05 15:23:46 +00:00
|
|
|
, humanfriendly
|
2022-12-17 10:02:37 +00:00
|
|
|
, tenacity
|
2021-04-05 15:23:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "git-annex-remote-googledrive";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "1.3.2";
|
2022-12-17 10:02:37 +00:00
|
|
|
format = "setuptools";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-05 21:33:18 +00:00
|
|
|
sha256 = "0rwjcdvfgzdlfgrn1rrqwwwiqqzyh114qddrbfwd46ld5spry6r1";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
annexremote
|
|
|
|
drivelib
|
|
|
|
gitpython
|
|
|
|
tenacity
|
|
|
|
humanfriendly
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
# 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;
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"git_annex_remote_googledrive"
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A git-annex special remote for Google Drive";
|
|
|
|
homepage = "https://pypi.org/project/git-annex-remote-googledrive/";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ gravndal ];
|
|
|
|
};
|
|
|
|
}
|