nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 55 lines 1.0 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 setuptools, 12 versioneer, 13}: 14 15buildPythonPackage rec { 16 pname = "drivelib"; 17 version = "0.3.0"; 18 pyproject = true; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-lTyRncKBMoU+ahuekt+LQ/PhNqySf4a4qLSmyo1t468="; 23 }; 24 25 postPatch = '' 26 # Remove vendorized versioneer.py 27 rm versioneer.py 28 ''; 29 30 build-system = [ 31 setuptools 32 versioneer 33 ]; 34 35 dependencies = [ 36 expiringdict 37 google-api-python-client 38 google-auth 39 google-auth-httplib2 40 google-auth-oauthlib 41 oauth2client 42 ]; 43 44 # Tests depend on a google auth token 45 doCheck = false; 46 47 pythonImportsCheck = [ "drivelib" ]; 48 49 meta = { 50 description = "Easy access to the most common Google Drive API calls"; 51 homepage = "https://github.com/Lykos153/python-drivelib"; 52 license = lib.licenses.gpl3Only; 53 maintainers = with lib.maintainers; [ gravndal ]; 54 }; 55}