xref: /aosp_15_r20/external/tink/testing/python/WORKSPACE (revision e7b1675dde1b92d52ec075b0a92829627f2c52a5)
1workspace(name = "testing_python")
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-12-12
52http_archive(
53    name = "rules_proto_grpc",
54    urls = ["https://github.com/rules-proto-grpc/rules_proto_grpc/archive/4.1.0.tar.gz"],
55    sha256 = "8383116d4c505e93fd58369841814acc3f25bdb906887a2023980d8f49a0b95b",
56    strip_prefix = "rules_proto_grpc-4.1.0",
57)
58
59load("@rules_proto_grpc//:repositories.bzl", "rules_proto_grpc_toolchains", "rules_proto_grpc_repos")
60rules_proto_grpc_toolchains()
61rules_proto_grpc_repos()
62
63load("@rules_proto_grpc//python:repositories.bzl", rules_proto_grpc_python_repos="python_repos")
64rules_proto_grpc_python_repos()
65
66load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
67
68grpc_deps()
69
70load("@rules_python//python:pip.bzl", "pip_install")
71
72pip_install(
73    name = "pip_deps",
74    requirements = "//:requirements.txt",
75)
76
77pip_install(
78    name = "rules_proto_grpc_py3_deps",
79    requirements = "@rules_proto_grpc//python:requirements.txt",
80)
81