at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 expiringdict, 5 fetchPypi, 6 google-api-python-client, 7 google-auth, 8 google-auth-httplib2, 9 google-auth-oauthlib, 10 oauth2client, 11 pythonOlder, 12 setuptools, 13 versioneer, 14}: 15 16buildPythonPackage rec { 17 pname = "drivelib"; 18 version = "0.3.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.8"; 22 23 src = fetchPypi { 24 inherit pname version; 25 hash = "sha256-lTyRncKBMoU+ahuekt+LQ/PhNqySf4a4qLSmyo1t468="; 26 }; 27 28 postPatch = '' 29 # Remove vendorized versioneer.py 30 rm versioneer.py 31 ''; 32 33 build-system = [ 34 setuptools 35 versioneer 36 ]; 37 38 dependencies = [ 39 expiringdict 40 google-api-python-client 41 google-auth 42 google-auth-httplib2 43 google-auth-oauthlib 44 oauth2client 45 ]; 46 47 # Tests depend on a google auth token 48 doCheck = false; 49 50 pythonImportsCheck = [ "drivelib" ]; 51 52 meta = with lib; { 53 description = "Easy access to the most common Google Drive API calls"; 54 homepage = "https://github.com/Lykos153/python-drivelib"; 55 license = licenses.gpl3Only; 56 maintainers = with maintainers; [ gravndal ]; 57 }; 58}