2018-11-02 19:57:06 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, enum34
|
|
|
|
, grpc_google_iam_v1
|
|
|
|
, google_api_core
|
|
|
|
, pytest
|
2019-02-03 11:56:30 +01:00
|
|
|
, mock
|
2018-11-02 19:57:06 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-asset";
|
2019-12-19 20:31:11 +01:00
|
|
|
version = "0.6.0";
|
2018-11-02 19:57:06 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 20:31:11 +01:00
|
|
|
sha256 = "35eeb50c101968b4b5eecc840002a6f83af6789b6a947f27f0b2787e30cc1835";
|
2018-11-02 19:57:06 +01:00
|
|
|
};
|
|
|
|
|
2019-02-03 11:56:30 +01:00
|
|
|
checkInputs = [ pytest mock ];
|
2018-11-02 19:57:06 +01:00
|
|
|
propagatedBuildInputs = [ enum34 grpc_google_iam_v1 google_api_core ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cloud Asset API API client library";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 19:57:06 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|