1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-auth 5, google-cloud-testutils 6, google-crc32c 7, mock 8, pytestCheckHook 9, pytest-asyncio 10, requests 11}: 12 13buildPythonPackage rec { 14 pname = "google-resumable-media"; 15 version = "2.4.0"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "sha256-jVUYUC+SuezISsRneb1PCWlOyzujij58pzeobRXLyh8="; 20 }; 21 22 propagatedBuildInputs = [ google-auth google-crc32c requests ]; 23 24 checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ]; 25 26 preCheck = '' 27 # prevent shadowing imports 28 rm -r google 29 # fixture 'authorized_transport' not found 30 rm tests/system/requests/test_upload.py 31 # requires network 32 rm tests/system/requests/test_download.py 33 ''; 34 35 pythonImportsCheck = [ 36 "google._async_resumable_media" 37 "google.resumable_media" 38 ]; 39 40 meta = with lib; { 41 description = "Utilities for Google Media Downloads and Resumable Uploads"; 42 homepage = "https://github.com/GoogleCloudPlatform/google-resumable-media-python"; 43 license = licenses.asl20; 44 maintainers = with maintainers; [ SuperSandro2000 ]; 45 }; 46}