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 = "3.1.1";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "e012d76aa32b918c71392c11e1c727328c1570364f8d8e0676e52bc64c57a7af";
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 ];
34
35 meta = with lib; {
36 description = "Google Cloud Dataproc API client library";
37 homepage = "https://github.com/googleapis/python-dataproc";
38 license = licenses.asl20;
39 maintainers = with maintainers; [ SuperSandro2000 ];
40 };
41}