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