nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

pythonPackages.gdrivefs: refactor move to python-modules

authored by

Chris Ostrouchov and committed by
Frederik Rietdijk
235c6edd b5ae82f5

+49 -35
+48
pkgs/development/python-modules/gdrivefs/default.nix
··· 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 + 14 + buildPythonPackage 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 + }
+1 -35
pkgs/top-level/python-packages.nix
··· 2358 2358 pythonPackages = self; 2359 2359 }); 2360 2360 2361 - gdrivefs = buildPythonPackage rec { 2362 - version = "0.14.9"; 2363 - name = "gdrivefs-${version}"; 2364 - namePrefix = ""; 2365 - disabled = !isPy27; 2366 - 2367 - src = pkgs.fetchurl { 2368 - url = "https://github.com/dsoprea/GDriveFS/archive/${version}.tar.gz"; 2369 - sha256 = "1mc2r35nf5k8vzwdcdhi0l9rb97amqd5xb53lhydj8v8f4rndk7a"; 2370 - }; 2371 - 2372 - buildInputs = with self; [ gipc greenlet httplib2 six ]; 2373 - propagatedBuildInputs = with self; [ dateutil fusepy google_api_python_client ]; 2374 - 2375 - patchPhase = '' 2376 - substituteInPlace gdrivefs/resources/requirements.txt \ 2377 - --replace "==" ">=" 2378 - ''; 2379 - 2380 - meta = { 2381 - description = "Mount Google Drive as a local file system"; 2382 - longDescription = '' 2383 - GDriveFS is a FUSE wrapper for Google Drive developed. Design goals: 2384 - - Thread for monitoring changes via "changes" functionality of API. 2385 - - Complete stat() implementation. 2386 - - Seamlessly work around duplicate-file allowances in Google Drive. 2387 - - Seamlessly manage file-type versatility in Google Drive 2388 - (Google Doc files do not have a particular format). 2389 - - Allow for the same file at multiple paths. 2390 - ''; 2391 - homepage = https://github.com/dsoprea/GDriveFS; 2392 - license = licenses.gpl2; 2393 - platforms = platforms.unix; 2394 - }; 2395 - }; 2361 + gdrivefs = callPackage ../development/python-modules/gdrivefs { }; 2396 2362 2397 2363 genshi = buildPythonPackage { 2398 2364 name = "genshi-0.7";