Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 67 lines 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, freezegun 6, google-cloud-core 7, google-cloud-storage 8, google-cloud-testutils 9, google-resumable-media 10, ipython 11, mock 12, pandas 13, proto-plus 14, psutil 15, pyarrow 16}: 17 18buildPythonPackage rec { 19 pname = "google-cloud-bigquery"; 20 version = "2.13.1"; 21 22 src = fetchPypi { 23 inherit pname version; 24 sha256 = "915f93c61c03d1d6024d5b19355bb96af25da9f924d0b5bab5cde851e1bd48f4"; 25 }; 26 27 propagatedBuildInputs = [ 28 google-resumable-media 29 google-cloud-core 30 proto-plus 31 pyarrow 32 ]; 33 34 checkInputs = [ 35 freezegun 36 google-cloud-testutils 37 ipython 38 mock 39 pandas 40 psutil 41 google-cloud-storage 42 pytestCheckHook 43 ]; 44 45 # prevent google directory from shadowing google imports 46 preCheck = '' 47 rm -r google 48 ''; 49 50 disabledTests = [ 51 # requires credentials 52 "test_bigquery_magic" 53 "TestBigQuery" 54 ]; 55 56 pythonImportsCheck = [ 57 "google.cloud.bigquery" 58 "google.cloud.bigquery_v2" 59 ]; 60 61 meta = with lib; { 62 description = "Google BigQuery API client library"; 63 homepage = "https://github.com/googleapis/python-bigquery"; 64 license = licenses.asl20; 65 maintainers = with maintainers; [ SuperSandro2000 ]; 66 }; 67}