2018-11-02 19:05:49 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google_api_core
|
2020-03-18 22:02:53 +00:00
|
|
|
, grpc_google_iam_v1
|
2018-11-02 19:05:49 +00:00
|
|
|
, pytest
|
2019-02-03 10:56:30 +00:00
|
|
|
, mock
|
2018-11-02 19:05:49 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-container";
|
2020-08-16 18:31:01 +01:00
|
|
|
version = "2.0.1";
|
2018-11-02 19:05:49 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:01 +01:00
|
|
|
sha256 = "6f714e3d427e2b36d1365fc400f4d379972529fb40f798d9c0e06c7c3418fc89";
|
2018-11-02 19:05:49 +00:00
|
|
|
};
|
|
|
|
|
2019-02-03 10:56:30 +00:00
|
|
|
checkInputs = [ pytest mock ];
|
2020-03-18 22:02:53 +00:00
|
|
|
propagatedBuildInputs = [ google_api_core grpc_google_iam_v1 ];
|
2018-11-02 19:05:49 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Google Container Engine API client library";
|
2020-03-18 22:02:53 +00:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 19:05:49 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|