xref: /aosp_15_r20/external/tink/testing/cross_language/WORKSPACE (revision e7b1675dde1b92d52ec075b0a92829627f2c52a5)
1workspace(name = "cross_language_test")
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
5local_repository(
6    name = "tink_py",
7    path = "../../python",
8)
9
10local_repository(
11    name = "tink_cc",
12    path = "../../cc",
13)
14
15local_repository(
16    name = "tink_cc_awskms",
17    path = "../../cc/integration/awskms",
18)
19
20local_repository(
21    name = "tink_cc_gcpkms",
22    path = "../../cc/integration/gcpkms",
23)
24
25# NOTE: The Python dependencies have to be loaded first, as they rely on a
26# newer version of rules_python.
27load("@tink_py//:tink_py_deps.bzl", "tink_py_deps")
28tink_py_deps()
29
30load("@tink_py//:tink_py_deps_init.bzl", "tink_py_deps_init")
31tink_py_deps_init("tink_py")
32
33load("@tink_cc//:tink_cc_deps.bzl", "tink_cc_deps")
34tink_cc_deps()
35
36load("@tink_cc//:tink_cc_deps_init.bzl", "tink_cc_deps_init")
37tink_cc_deps_init()
38
39load("@tink_cc_awskms//:tink_cc_awskms_deps.bzl", "tink_cc_awskms_deps")
40
41tink_cc_awskms_deps()
42
43load("@tink_cc_gcpkms//:tink_cc_gcpkms_deps.bzl", "tink_cc_gcpkms_deps")
44
45tink_cc_gcpkms_deps()
46
47load("@tink_cc_gcpkms//:tink_cc_gcpkms_deps_init.bzl", "tink_cc_gcpkms_deps_init")
48
49tink_cc_gcpkms_deps_init()
50
51# Release from 2021-10-26
52http_archive(
53    name = "rules_python",
54    url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.gz",
55    sha256 = "cd6730ed53a002c56ce4e2f396ba3b3be262fd7cb68339f0377a45e8227fe332",
56)
57
58# Release from 2021-12-12
59http_archive(
60    name = "rules_proto_grpc",
61    urls = ["https://github.com/rules-proto-grpc/rules_proto_grpc/archive/4.1.0.tar.gz"],
62    sha256 = "8383116d4c505e93fd58369841814acc3f25bdb906887a2023980d8f49a0b95b",
63    strip_prefix = "rules_proto_grpc-4.1.0",
64)
65
66
67http_archive(
68    name = "org_python_pypi_portpicker",
69    urls = [
70        "https://files.pythonhosted.org/packages/3b/34/bfbd5236c7726452080a92a9f6ea9770cd65f51b05cef319ccb767ed32bf/portpicker-1.5.2.tar.gz",
71    ],
72    sha256 = "c55683ad725f5c00a41bc7db0225223e8be024b1fa564d039ed3390e4fd48fb3",
73    strip_prefix = "portpicker-1.5.2/src",
74    build_file = "portpicker.BUILD.bazel",
75)
76
77load("@rules_proto_grpc//:repositories.bzl", "rules_proto_grpc_toolchains", "rules_proto_grpc_repos")
78rules_proto_grpc_toolchains()
79rules_proto_grpc_repos()
80
81load("@rules_proto_grpc//python:repositories.bzl", rules_proto_grpc_python_repos="python_repos")
82rules_proto_grpc_python_repos()
83
84load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
85
86grpc_deps()
87
88load("@rules_python//python:pip.bzl", "pip_install")
89
90pip_install(
91    name = "pip_deps",
92    requirements = "//:requirements.txt",
93)
94
95pip_install(
96    name = "rules_proto_grpc_py3_deps",
97    requirements = "@rules_proto_grpc//python:requirements.txt",
98)
99