2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, isPy3k
|
|
|
|
, gipc
|
|
|
|
, greenlet
|
|
|
|
, httplib2
|
|
|
|
, six
|
2021-07-04 02:40:35 +00:00
|
|
|
, python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
, fusepy
|
2021-03-09 03:18:52 +00:00
|
|
|
, google-api-python-client
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.14.12";
|
|
|
|
pname = "gdrivefs";
|
|
|
|
disabled = isPy3k;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dsoprea";
|
|
|
|
repo = "GDriveFS";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-eDBy2rp3uitUrR9CG75x8mAio8+gaSckA/lEPAWO0Yo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gipc greenlet httplib2 six ];
|
2021-07-04 02:40:35 +00:00
|
|
|
propagatedBuildInputs = [ python-dateutil fusepy google-api-python-client ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace gdrivefs/resources/requirements.txt \
|
|
|
|
--replace "==" ">="
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mount Google Drive as a local file system";
|
|
|
|
longDescription = ''
|
|
|
|
GDriveFS is a FUSE wrapper for Google Drive developed. Design goals:
|
|
|
|
- Thread for monitoring changes via "changes" functionality of API.
|
|
|
|
- Complete stat() implementation.
|
|
|
|
- Seamlessly work around duplicate-file allowances in Google Drive.
|
|
|
|
- Seamlessly manage file-type versatility in Google Drive
|
|
|
|
(Google Doc files do not have a particular format).
|
|
|
|
- Allow for the same file at multiple paths.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/dsoprea/GDriveFS";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|