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-04-12 12:48:02 +00:00
|
|
|
version = "1.11.0";
|
2023-01-11 07:51:40 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-0dBaSz7G+DC73Md5p0DpY6gNMkpP1u9Bp8JIoHz5ZIk=";
|
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
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-09 14:08:57 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|