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.9.3";
20 pyproject = true;
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchPypi {
25 inherit pname version;
26 hash = "sha256-l9ZHiR5/TNJfa4Oa5XzTVYCd8so5ZlPtJK9itO8C9BI=";
27 };
28
29 nativeBuildInputs = [ setuptools ];
30
31 propagatedBuildInputs = [
32 google-api-core
33 grpc-google-iam-v1
34 libcst
35 proto-plus
36 protobuf
37 ] ++ google-api-core.optional-dependencies.grpc;
38
39 nativeCheckInputs = [
40 mock
41 pytestCheckHook
42 pytest-asyncio
43 ];
44
45 disabledTests = [
46 # Test requires credentials
47 "test_list_clusters"
48 ];
49
50 pythonImportsCheck = [
51 "google.cloud.dataproc"
52 "google.cloud.dataproc_v1"
53 ];
54
55 meta = with lib; {
56 description = "Google Cloud Dataproc API client library";
57 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-dataproc";
58 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-dataproc-v${version}/packages/google-cloud-dataproc/CHANGELOG.md";
59 license = licenses.asl20;
60 maintainers = with maintainers; [ ];
61 };
62}