2018-11-02 19:08:22 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google_api_core
|
|
|
|
, pytest
|
2019-02-03 10:56:30 +00:00
|
|
|
, mock
|
2020-10-10 10:36:05 +01:00
|
|
|
, libcst
|
|
|
|
, proto-plus
|
2018-11-02 19:08:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-dataproc";
|
2020-10-25 09:06:52 +00:00
|
|
|
version = "2.0.2";
|
2018-11-02 19:08:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 09:06:52 +00:00
|
|
|
sha256 = "1ab0128be96a01c6ba3d10db21b8018583b15995ad9a088cb3e4c3df90a62e46";
|
2018-11-02 19:08:22 +00:00
|
|
|
};
|
|
|
|
|
2019-02-03 10:56:30 +00:00
|
|
|
checkInputs = [ pytest mock ];
|
2020-10-10 10:36:05 +01:00
|
|
|
propagatedBuildInputs = [ google_api_core libcst proto-plus ];
|
2018-11-02 19:08:22 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|