depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-resource-manager/default.nix

42 lines
963 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, google-cloud-core
, google-api-core
, grpc-google-iam-v1
, proto-plus
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-resource-manager";
version = "1.3.2";
src = fetchPypi {
inherit pname version;
sha256 = "b99e11360668ed0c034c8cf3a34caf6fd4a52efaf62d54dd85407c3ad20b715c";
};
propagatedBuildInputs = [ google-api-core google-cloud-core grpc-google-iam-v1 proto-plus ];
checkInputs = [ mock pytestCheckHook ];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
pythonImportsCheck = [
"google.cloud.resourcemanager"
"google.cloud.resourcemanager_v3"
];
meta = with lib; {
description = "Google Cloud Resource Manager API client library";
homepage = "https://github.com/googleapis/python-resource-manager";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}