2022-09-09 14:08:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, google-api-core
|
|
|
|
, mock
|
|
|
|
, proto-plus
|
|
|
|
, protobuf
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-compute";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "1.8.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-11 07:51:40 +00:00
|
|
|
hash = "sha256-pnhXkYSXph7aIZJoI3tXTNIUkH44S22QDIGXUl9ceFU=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
google-api-core
|
|
|
|
proto-plus
|
|
|
|
protobuf
|
2023-01-11 07:51:40 +00:00
|
|
|
] ++ google-api-core.optional-dependencies.grpc;
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.compute"
|
|
|
|
"google.cloud.compute_v1"
|
|
|
|
];
|
|
|
|
|
|
|
|
# disable tests that require credentials
|
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/system/test_addresses.py"
|
|
|
|
"tests/system/test_instance_group.py"
|
|
|
|
"tests/system/test_pagination.py"
|
|
|
|
"tests/system/test_smoke.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "API Client library for Google Cloud Compute";
|
|
|
|
homepage = "https://github.com/googleapis/python-compute";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/googleapis/python-compute/blob/v${version}/CHANGELOG.md";
|
2022-09-09 14:08:57 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jpetrucciani ];
|
|
|
|
};
|
|
|
|
}
|