depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-translate/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

56 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, google-api-core
, google-cloud-core
, google-cloud-testutils
, grpcio
, libcst
, mock
, proto-plus
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-translate";
version = "3.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "8cd957f4b29a8c7a983e0a427c2712533c41bb7007b76a8cc88d6c65075c679a";
};
propagatedBuildInputs = [
google-api-core
google-cloud-core
libcst
proto-plus
];
checkInputs = [
google-cloud-testutils
mock
pytestCheckHook
pytest-asyncio
];
preCheck = ''
# prevent shadowing imports
rm -r google
'';
pythonImportsCheck = [
"google.cloud.translate"
"google.cloud.translate_v2"
"google.cloud.translate_v3"
"google.cloud.translate_v3beta1"
];
meta = with lib; {
description = "Google Cloud Translation API client library";
homepage = "https://github.com/googleapis/python-translate";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}