<commit_before>{ stdenv
, buildPythonPackage
, fetchPypi
, google_resumable_media
, google_api_core
, google_cloud_core
, pandas
, pyarrow
, pytest
, mock
, ipython
}:

buildPythonPackage rec {
  pname = "google-cloud-bigquery";
  version = "1.23.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "99c341592d711d8f131fe80d842f7e1b04b2ca1faefa1ffedf4dec1b382cebf6";
  };

  checkInputs = [ pytest mock ipython ];
  propagatedBuildInputs = [ google_resumable_media google_api_core google_cloud_core pandas pyarrow ];

  checkPhase = ''
    pytest tests/unit
  '';

  meta = with stdenv.lib; {
    description = "Google BigQuery API client library";
    homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
    license = licenses.asl20;
    maintainers = [ maintainers.costrouc ];
  };
}<commit_msg>python3Packages.google_cloud_bigquery: 1.23.1 -> 1.24.0<commit_after>{ stdenv
, buildPythonPackage
, fetchPypi
, freezegun
, google_resumable_media
, google_api_core
, google_cloud_core
, pandas
, pyarrow
, pytest
, mock
, ipython
}:

buildPythonPackage rec {
  pname = "google-cloud-bigquery";
  version = "1.24.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1ca22hzql8x1z6bx9agidx0q09w24jwzkgg49k5j1spcignwxz3z";
  };

  checkInputs = [ pytest mock ipython freezegun ];
  propagatedBuildInputs = [ google_resumable_media google_api_core google_cloud_core pandas pyarrow ];

  # prevent local directory from shadowing google imports
  # call_api_applying_custom_retry_on_timeout requires credentials
  # test_magics requires modifying sys.path
  checkPhase = ''
    rm -r google
    pytest tests/unit \
      -k 'not call_api_applying_custom_retry_on_timeout' \
      --ignore=tests/unit/test_magics.py
  '';

  meta = with stdenv.lib; {
    description = "Google BigQuery API client library";
    homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
    license = licenses.asl20;
    maintainers = [ maintainers.costrouc ];
  };
}
{'fraction_non_alphanumeric': 0.0955, 'fraction_numerical': 0.0385, 'mean_word_length': 4.197402597402597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '981367', 'n_tokens_mistral': 752, 'n_tokens_neox': 712, 'n_words': 131}