32 lines
670 B
Nix
32 lines
670 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, google_api_core
|
|
, pytest
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-dataproc";
|
|
version = "0.3.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "3acbb1bd9e25fd233ae321c137a58306d5d0ef262e3cbe825c511c8ef55b33a2";
|
|
};
|
|
|
|
checkInputs = [ pytest mock ];
|
|
propagatedBuildInputs = [ google_api_core ];
|
|
|
|
checkPhase = ''
|
|
pytest tests/unit
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Google Cloud Dataproc API client library";
|
|
homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|