pythonPackages.google_cloud_bigquery: Cleanups

+30 -19
+30 -19
pkgs/development/python-modules/google_cloud_bigquery/default.nix
··· 1 - { stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, freezegun 2 - , google_api_core, google_cloud_core, google_cloud_testutils 3 - , google_resumable_media, grpcio, ipython, mock, pandas, proto-plus, pyarrow }: 1 + { stdenv 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pytestCheckHook 5 + , freezegun 6 + , google_cloud_core 7 + , google_cloud_testutils 8 + , google_resumable_media 9 + , grpcio 10 + , ipython 11 + , mock 12 + , pandas 13 + , proto-plus 14 + , pyarrow 15 + }: 4 16 5 17 buildPythonPackage rec { 6 18 pname = "google-cloud-bigquery"; ··· 8 20 9 21 src = fetchPypi { 10 22 inherit pname version; 11 - sha256 = "1f99fd0c0c5bde999e056a1be666e5d5bbf392f62c9e730dfcbaf6e8408d44ef"; 23 + sha256 = "1vs4im0fixmszh6p77icys9g7fymwmkfc6va0ng9kpjv1h6gv68z"; 12 24 }; 13 25 14 - disabled = pythonOlder "3.6"; 15 - 16 - checkInputs = 17 - [ freezegun google_cloud_testutils ipython mock pytestCheckHook ]; 18 26 propagatedBuildInputs = [ 19 27 google_resumable_media 20 - google_api_core 21 28 google_cloud_core 22 - pandas 23 29 proto-plus 24 30 pyarrow 25 31 ]; 26 32 33 + checkInputs = [ 34 + freezegun 35 + google_cloud_testutils 36 + ipython 37 + mock 38 + pandas 39 + pytestCheckHook 40 + ]; 41 + 27 42 # prevent google directory from shadowing google imports 28 - # test_magics requires modifying sys.path 29 43 preCheck = '' 30 44 rm -r google 31 - rm tests/unit/test_magics.py 32 45 ''; 33 46 34 - # call_api_applying_custom_retry_on_timeout requires credentials 35 - # to_dataframe_timestamp_out_of_pyarrow_bounds has inconsistent results 36 - disabledTests = [ 37 - "call_api_applying_custom_retry_on_timeout" 38 - "to_dataframe_timestamp_out_of_pyarrow_bounds" 47 + pythonImportsCheck = [ 48 + "google.cloud.bigquery" 49 + "google.cloud.bigquery_v2" 39 50 ]; 40 51 41 52 meta = with stdenv.lib; { 42 53 description = "Google BigQuery API client library"; 43 - homepage = "https://pypi.org/project/google-cloud-bigquery"; 54 + homepage = "https://github.com/googleapis/python-bigquery"; 44 55 license = licenses.asl20; 45 - maintainers = [ maintainers.costrouc ]; 56 + maintainers = with maintainers; [ SuperSandro2000 ]; 46 57 }; 47 58 }