2021-04-01 23:05:45 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, annexremote
|
|
|
|
, drivelib
|
|
|
|
, GitPython
|
|
|
|
, tenacity
|
|
|
|
, humanfriendly
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "git-annex-remote-googledrive";
|
2021-07-24 00:41:28 +02:00
|
|
|
version = "1.3.2";
|
2021-04-01 23:05:45 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-07-24 00:41:28 +02:00
|
|
|
sha256 = "0rwjcdvfgzdlfgrn1rrqwwwiqqzyh114qddrbfwd46ld5spry6r1";
|
2021-04-01 23:05:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ annexremote drivelib GitPython tenacity humanfriendly ];
|
|
|
|
|
|
|
|
# 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 = "A git-annex special remote for Google Drive";
|
|
|
|
homepage = "https://pypi.org/project/git-annex-remote-googledrive/";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ gravndal ];
|
|
|
|
};
|
|
|
|
}
|