Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, google_resumable_media 5, google_api_core 6, google_cloud_core 7, pytest 8, mock 9, setuptools 10}: 11 12buildPythonPackage rec { 13 pname = "google-cloud-storage"; 14 version = "1.30.0"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "0634addb7576d48861d9963312fc82a0436042b8f282414ed58ca76d73edee54"; 19 }; 20 21 propagatedBuildInputs = [ 22 google_api_core 23 google_cloud_core 24 google_resumable_media 25 setuptools 26 ]; 27 checkInputs = [ 28 mock 29 pytest 30 ]; 31 32 # remove directory from interferring with importing modules 33 # ignore tests which require credentials 34 checkPhase = '' 35 rm -r google 36 pytest tests/unit -k 'not (create or get or post)' 37 ''; 38 39 meta = with lib; { 40 description = "Google Cloud Storage API client library"; 41 homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ costrouc ]; 44 }; 45}