1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, mock
6, libcst
7, proto-plus
8, pytestCheckHook
9, pytest-asyncio
10}:
11
12buildPythonPackage rec {
13 pname = "google-cloud-dataproc";
14 version = "2.3.1";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "sha256-TADApBkE4DvEFkVFy56Flh2s6XR9uGxzGTf5aspohsA=";
19 };
20
21 propagatedBuildInputs = [ google-api-core libcst proto-plus ];
22
23 checkInputs = [ mock pytestCheckHook pytest-asyncio ];
24
25 disabledTests = [
26 # requires credentials
27 "test_list_clusters"
28 ];
29
30 pythonImportsCheck = [
31 "google.cloud.dataproc"
32 "google.cloud.dataproc_v1"
33 "google.cloud.dataproc_v1beta2"
34 ];
35
36 meta = with lib; {
37 description = "Google Cloud Dataproc API client library";
38 homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ SuperSandro2000 ];
41 };
42}