nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 google-api-core,
6 google-cloud-testutils,
7 mock,
8 proto-plus,
9 protobuf,
10 pytest-asyncio,
11 pytestCheckHook,
12 setuptools,
13}:
14
15buildPythonPackage rec {
16 pname = "google-cloud-dlp";
17 version = "3.34.0";
18 pyproject = true;
19
20 src = fetchPypi {
21 pname = "google_cloud_dlp";
22 inherit version;
23 hash = "sha256-bfoxclINWn+ozM5HqWIs3oFfA3tKpvttaZhP1Ze/gAc=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 google-api-core
30 proto-plus
31 protobuf
32 ]
33 ++ google-api-core.optional-dependencies.grpc;
34
35 nativeCheckInputs = [
36 google-cloud-testutils
37 mock
38 pytestCheckHook
39 pytest-asyncio
40 ];
41
42 disabledTests = [
43 # Tests require credentials
44 "test_inspect_content"
45 "test_list_dlp_jobs"
46 ];
47
48 pythonImportsCheck = [
49 "google.cloud.dlp"
50 "google.cloud.dlp_v2"
51 ];
52
53 meta = {
54 description = "Cloud Data Loss Prevention (DLP) API API client library";
55 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-dlp";
56 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-dlp-v${version}/packages/google-cloud-dlp/CHANGELOG.md";
57 license = lib.licenses.asl20;
58 maintainers = [ ];
59 };
60}