biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-kms / default.nix
blob7c879b7235d36195d2cb9c3635bd75c43bc588fa
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   google-api-core,
6   grpc-google-iam-v1,
7   mock,
8   proto-plus,
9   protobuf,
10   pytest-asyncio,
11   pytestCheckHook,
12   pythonOlder,
13   setuptools,
16 buildPythonPackage rec {
17   pname = "google-cloud-kms";
18   version = "3.0.0";
19   pyproject = true;
21   disabled = pythonOlder "3.7";
23   src = fetchPypi {
24     pname = "google_cloud_kms";
25     inherit version;
26     hash = "sha256-suyMBB/cl8hkW/w7S2TNFJ32JFl8dbSuS8qmIU7oSus=";
27   };
29   nativeBuildInputs = [ setuptools ];
31   propagatedBuildInputs = [
32     grpc-google-iam-v1
33     google-api-core
34     proto-plus
35     protobuf
36   ] ++ google-api-core.optional-dependencies.grpc;
38   nativeCheckInputs = [
39     mock
40     pytest-asyncio
41     pytestCheckHook
42   ];
44   disabledTests = [
45     # Disable tests that need credentials
46     "test_list_global_key_rings"
47     # Tests require PROJECT_ID
48     "test_list_ekm_connections"
49   ];
51   pythonImportsCheck = [
52     "google.cloud.kms"
53     "google.cloud.kms_v1"
54   ];
56   meta = with lib; {
57     description = "Cloud Key Management Service (KMS) API API client library";
58     homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-kms";
59     changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-kms-v${version}/packages/google-cloud-kms/CHANGELOG.md";
60     license = licenses.asl20;
61     maintainers = [ ];
62   };