2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-11-02 19:08:22 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
2019-02-03 10:56:30 +00:00
|
|
|
, mock
|
2020-10-10 10:36:05 +01:00
|
|
|
, libcst
|
|
|
|
, proto-plus
|
2021-01-05 15:55:40 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
2018-11-02 19:08:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-dataproc";
|
2021-06-06 20:55:03 +01:00
|
|
|
version = "2.4.0";
|
2018-11-02 19:08:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 22:47:18 +01:00
|
|
|
sha256 = "6e5373febe420e2b2375d2252b272129f11a37ff1b88a7587322931063be8d38";
|
2018-11-02 19:08:22 +00:00
|
|
|
};
|
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
|
2018-11-02 19:08:22 +00:00
|
|
|
|
2021-01-05 15:55:40 +00: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 19:08:22 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-02 19:08:22 +00:00
|
|
|
description = "Google Cloud Dataproc API client library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 19:08:22 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 15:55:40 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 19:08:22 +00:00
|
|
|
};
|
|
|
|
}
|