Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, freezegun 5, google_resumable_media 6, google_api_core 7, google_cloud_core 8, pandas 9, pyarrow 10, pytest 11, mock 12, ipython 13}: 14 15buildPythonPackage rec { 16 pname = "google-cloud-bigquery"; 17 version = "1.26.1"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "51c29b95d460486d9e0210f63e8193691cd08480b69775270e84dd3db87c1bf2"; 22 }; 23 24 checkInputs = [ pytest mock ipython freezegun ]; 25 propagatedBuildInputs = [ google_resumable_media google_api_core google_cloud_core pandas pyarrow ]; 26 27 # prevent local directory from shadowing google imports 28 # call_api_applying_custom_retry_on_timeout requires credentials 29 # test_magics requires modifying sys.path 30 checkPhase = '' 31 rm -r google 32 pytest tests/unit \ 33 -k 'not call_api_applying_custom_retry_on_timeout' \ 34 --ignore=tests/unit/test_magics.py 35 ''; 36 37 meta = with stdenv.lib; { 38 broken = true; 39 description = "Google BigQuery API client library"; 40 homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; 41 license = licenses.asl20; 42 maintainers = [ maintainers.costrouc ]; 43 }; 44}