2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-11-02 15:08:22 -04:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-06 10:46:48 +01:00
|
|
|
, google-api-core
|
2019-02-03 11:56:30 +01:00
|
|
|
, mock
|
2020-10-10 11:36:05 +02:00
|
|
|
, libcst
|
|
|
|
, proto-plus
|
2021-01-05 16:55:40 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
2018-11-02 15:08:22 -04:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-dataproc";
|
2021-04-05 05:02:09 +02:00
|
|
|
version = "2.3.1";
|
2018-11-02 15:08:22 -04:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-05 05:02:09 +02:00
|
|
|
sha256 = "sha256-TADApBkE4DvEFkVFy56Flh2s6XR9uGxzGTf5aspohsA=";
|
2018-11-02 15:08:22 -04:00
|
|
|
};
|
|
|
|
|
2021-01-06 10:46:48 +01:00
|
|
|
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
|
2018-11-02 15:08:22 -04:00
|
|
|
|
2021-01-05 16:55:40 +01:00
|
|
|
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# requires credentials
|
|
|
|
"test_list_clusters"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.dataproc"
|
|
|
|
"google.cloud.dataproc_v1"
|
|
|
|
"google.cloud.dataproc_v1beta2"
|
|
|
|
];
|
2018-11-02 15:08:22 -04:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-11-02 15:08:22 -04:00
|
|
|
description = "Google Cloud Dataproc API client library";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 15:08:22 -04:00
|
|
|
license = licenses.asl20;
|
2021-01-05 16:55:40 +01:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 15:08:22 -04:00
|
|
|
};
|
|
|
|
}
|