2018-11-02 20:26:30 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, enum34
|
|
|
|
, grpc_google_iam_v1
|
|
|
|
, google_api_core
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-tasks";
|
2019-02-03 10:44:14 +00:00
|
|
|
version = "0.4.0";
|
2018-11-02 20:26:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-03 10:44:14 +00:00
|
|
|
sha256 = "3c5f26dd3750f9b222a69c37e85ee1acf198456dfebe1e0058f366dd27729559";
|
2018-11-02 20:26:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ enum34 grpc_google_iam_v1 google_api_core ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cloud Tasks API API client library";
|
|
|
|
homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|