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