depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-resource-manager/default.nix
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

53 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, google-cloud-core
, google-api-core
, grpc-google-iam-v1
, proto-plus
, mock
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-resource-manager";
version = "1.4.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-InkkAtqK5f1oqUK0Nsxc2PYt5JWBlB3ElGVNs5IJV/Q=";
};
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 ];
};
}