depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-resource-manager/default.nix
Default email 93df2b837e Project import generated by Copybara.
GitOrigin-RevId: 18d4025a8ee2f656d897505ccd0ba61a5b89bbea
2021-10-08 17:17:17 +02:00

41 lines
963 B
Nix

{ 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.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "7f519bdf1ed5bfedc4bdcd237c5d3cfa50ef37dd92cf14db123ff80ac99950e0";
};
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 ];
};
}