<commit_before>{ stdenv
, buildPythonPackage
, fetchPypi
, google_api_core
, google_cloud_core
, grpcio
, pytest
, mock
}:

buildPythonPackage rec {
  pname = "google-cloud-translate";
  version = "2.0.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0nfc628nr2k6kd3q9qpgwz7c12l0191rv5x4pvca8q82jl96gip5";
  };

  # google_cloud_core[grpc] -> grpcio
  propagatedBuildInputs = [ google_api_core google_cloud_core grpcio ];

  checkInputs = [ pytest mock ];
  checkPhase = ''
    cd tests # prevent local google/__init__.py from getting loaded
    pytest unit
  '';

  meta = with stdenv.lib; {
    description = "Google Cloud Translation API client library";
    homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
    license = licenses.asl20;
    maintainers = [ maintainers.costrouc ];
  };
}<commit_msg>python3Packages.google_cloud_translate: 2.0.0 -> 2.0.1, fix tests<commit_after>{ stdenv
, buildPythonPackage
, fetchPypi
, google_api_core
, google_cloud_core
, grpcio
, pytest
, mock
}:

buildPythonPackage rec {
  pname = "google-cloud-translate";
  version = "2.0.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "02wlqlrxk0x6a9wifcly2pr84r6k8i97ws0prx21379fss39gf2a";
  };

  # google_cloud_core[grpc] -> grpcio
  propagatedBuildInputs = [ google_api_core google_cloud_core grpcio ];

  checkInputs = [ pytest mock ];
  checkPhase = ''
    cd tests # prevent local google/__init__.py from getting loaded
    pytest unit -k 'not extra_headers'
  '';

  meta = with stdenv.lib; {
    description = "Google Cloud Translation API client library";
    homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
    license = licenses.asl20;
    maintainers = [ maintainers.costrouc ];
  };
}
{'fraction_non_alphanumeric': 0.10562180579216354, 'fraction_numerical': 0.0380465644520159, 'mean_word_length': 3.949438202247191, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '678733', 'n_tokens_mistral': 656, 'n_tokens_neox': 626, 'n_words': 123}