1{
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,
15}:
16
17buildPythonPackage rec {
18 pname = "google-cloud-dataproc";
19 version = "5.12.0";
20 pyproject = true;
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchPypi {
25 pname = "google_cloud_dataproc";
26 inherit version;
27 hash = "sha256-S1jXIPAgxONTeKKeqHzoKGr2Mes7w4LMvL/zncAZnik=";
28 };
29
30 build-system = [ setuptools ];
31
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;
39
40 nativeCheckInputs = [
41 mock
42 pytestCheckHook
43 pytest-asyncio
44 ];
45
46 disabledTests = [
47 # Test requires credentials
48 "test_list_clusters"
49 ];
50
51 pythonImportsCheck = [
52 "google.cloud.dataproc"
53 "google.cloud.dataproc_v1"
54 ];
55
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 };
63}