Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 expiringdict, 6 google-auth-httplib2, 7 google-auth-oauthlib, 8 google-api-python-client, 9}: 10 11buildPythonPackage rec { 12 pname = "drivelib"; 13 version = "0.3.0"; 14 format = "setuptools"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "1bz3dn6wm9mlm2w8czwjmhvf3ws3iggr57hvd8z8acl1qafr2g4m"; 19 }; 20 21 propagatedBuildInputs = [ 22 google-api-python-client 23 google-auth-oauthlib 24 google-auth-httplib2 25 expiringdict 26 ]; 27 28 # tests depend on a google auth token 29 doCheck = false; 30 31 pythonImportsCheck = [ "drivelib" ]; 32 33 meta = with lib; { 34 description = "Easy access to the most common Google Drive API calls"; 35 homepage = "https://pypi.org/project/drivelib/"; 36 license = licenses.gpl3Only; 37 maintainers = with maintainers; [ gravndal ]; 38 }; 39}