1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 google-api-core,
6 protobuf,
7 proto-plus,
8 pytestCheckHook,
9 pytest-asyncio,
10 pythonOlder,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "google-cloud-os-config";
16 version = "1.17.3";
17 pyproject = true;
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-oKOqWVmAP14dKpbVDlcX2KSRceTqVES/UGlLsYtnWHA=";
24 };
25
26 nativeBuildInputs = [ setuptools ];
27
28 propagatedBuildInputs = [
29 google-api-core
30 proto-plus
31 protobuf
32 ] ++ google-api-core.optional-dependencies.grpc;
33
34 nativeCheckInputs = [
35 pytest-asyncio
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "google.cloud.osconfig" ];
40
41 disabledTests = [
42 # Test requires a project ID
43 "test_patch_deployment"
44 "test_patch_job"
45 "test_list_patch_jobs"
46 ];
47
48 meta = with lib; {
49 description = "Google Cloud OS Config API client library";
50 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-os-config";
51 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-os-config-v${version}/packages/google-cloud-os-config/CHANGELOG.md";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ ];
54 };
55}