ch9344: 2.0 -> 0-unstable-2024-11-15 (#354536)
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-dataproc / default.nix
blob480bf6f76d87c3cfb225b5b4428d76db893483be
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   google-api-core,
6   grpc-google-iam-v1,
7   mock,
8   libcst,
9   proto-plus,
10   protobuf,
11   pytestCheckHook,
12   pytest-asyncio,
13   pythonOlder,
14   setuptools,
17 buildPythonPackage rec {
18   pname = "google-cloud-dataproc";
19   version = "5.12.0";
20   pyproject = true;
22   disabled = pythonOlder "3.7";
24   src = fetchPypi {
25     pname = "google_cloud_dataproc";
26     inherit version;
27     hash = "sha256-S1jXIPAgxONTeKKeqHzoKGr2Mes7w4LMvL/zncAZnik=";
28   };
30   build-system = [ setuptools ];
32   dependencies = [
33     google-api-core
34     grpc-google-iam-v1
35     libcst
36     proto-plus
37     protobuf
38   ] ++ google-api-core.optional-dependencies.grpc;
40   nativeCheckInputs = [
41     mock
42     pytestCheckHook
43     pytest-asyncio
44   ];
46   disabledTests = [
47     # Test requires credentials
48     "test_list_clusters"
49   ];
51   pythonImportsCheck = [
52     "google.cloud.dataproc"
53     "google.cloud.dataproc_v1"
54   ];
56   meta = with lib; {
57     description = "Google Cloud Dataproc API client library";
58     homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-dataproc";
59     changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-dataproc-v${version}/packages/google-cloud-dataproc/CHANGELOG.md";
60     license = licenses.asl20;
61     maintainers = [ ];
62   };