python311Packages.google-cloud-compute: refactor

This commit is contained in:
Fabian Affolter 2024-01-06 15:22:32 +01:00
parent 5d2a3aa101
commit a7e8df5a98

View file

@ -8,12 +8,13 @@
, protobuf
, pytest-asyncio
, pytestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "google-cloud-compute";
version = "1.15.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
@ -22,6 +23,10 @@ buildPythonPackage rec {
hash = "sha256-+mda6vBMYnpELNMDIZbW82rWhEO6MnyXZ6a/vECkKyE=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
google-api-core
proto-plus
@ -39,8 +44,8 @@ buildPythonPackage rec {
"google.cloud.compute_v1"
];
# disable tests that require credentials
disabledTestPaths = [
# Disable tests that require credentials
"tests/system/test_addresses.py"
"tests/system/test_instance_group.py"
"tests/system/test_pagination.py"
@ -49,8 +54,8 @@ buildPythonPackage rec {
meta = with lib; {
description = "API Client library for Google Cloud Compute";
homepage = "https://github.com/googleapis/python-compute";
changelog = "https://github.com/googleapis/python-compute/blob/v${version}/CHANGELOG.md";
homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-compute";
changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-compute-v${version}/packages/google-cloud-compute/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ jpetrucciani ];
};