1{ stdenv
2, buildPythonPackage
3, fetchurl
4, isPy3k
5, gipc
6, greenlet
7, httplib2
8, six
9, dateutil
10, fusepy
11, google_api_python_client
12}:
13
14buildPythonPackage rec {
15 version = "0.14.9";
16 pname = "gdrivefs";
17 disabled = isPy3k;
18
19 src = fetchurl {
20 url = "https://github.com/dsoprea/GDriveFS/archive/${version}.tar.gz";
21 sha256 = "1mc2r35nf5k8vzwdcdhi0l9rb97amqd5xb53lhydj8v8f4rndk7a";
22 };
23
24 buildInputs = [ gipc greenlet httplib2 six ];
25 propagatedBuildInputs = [ dateutil fusepy google_api_python_client ];
26
27 patchPhase = ''
28 substituteInPlace gdrivefs/resources/requirements.txt \
29 --replace "==" ">="
30 '';
31
32 meta = with stdenv.lib; {
33 description = "Mount Google Drive as a local file system";
34 longDescription = ''
35 GDriveFS is a FUSE wrapper for Google Drive developed. Design goals:
36 - Thread for monitoring changes via "changes" functionality of API.
37 - Complete stat() implementation.
38 - Seamlessly work around duplicate-file allowances in Google Drive.
39 - Seamlessly manage file-type versatility in Google Drive
40 (Google Doc files do not have a particular format).
41 - Allow for the same file at multiple paths.
42 '';
43 homepage = https://github.com/dsoprea/GDriveFS;
44 license = licenses.gpl2;
45 platforms = platforms.unix;
46 };
47
48}