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