Files
nixpkgs/pkgs/development/python-modules/google-cloud-resource-manager/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

63 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
google-api-core,
google-cloud-core,
grpc-google-iam-v1,
proto-plus,
protobuf,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "google-cloud-resource-manager";
version = "1.15.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "google_cloud_resource_manager";
inherit version;
hash = "sha256-PQt4w9qnE/lW0k5SWzXp6adtWXxDiDcXEwTUMQhM7a8=";
};
build-system = [ setuptools ];
dependencies = [
google-api-core
google-cloud-core
grpc-google-iam-v1
proto-plus
protobuf
]
++ google-api-core.optional-dependencies.grpc;
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
# Prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
pythonImportsCheck = [
"google.cloud.resourcemanager"
"google.cloud.resourcemanager_v3"
];
meta = {
description = "Google Cloud Resource Manager API client library";
homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-resource-manager";
changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-resource-manager-v${version}/packages/google-cloud-resource-manager/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ ];
};
}