xref: /aosp_15_r20/external/tink/python/examples/WORKSPACE (revision e7b1675dde1b92d52ec075b0a92829627f2c52a5)
1workspace(name = "examples_python")
2
3# load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
5# The local_repository() rule is used below because the workspaces referenced
6# are all located within the Tink git repository.
7#
8# To replicate this setup in a workspace located in a separate repository, you
9# can use the equivalent, commented-out http_archive() rules below as a
10# starting point.
11#
12# See the Tink Python HOW-TO for more details:
13#   https://github.com/google/tink/blob/master/docs/PYTHON-HOWTO.md
14
15local_repository(
16    name = "tink_py",
17    path = "../../python",
18)
19# http_archive(
20#     name = "tink_py",
21#     urls = ["https://github.com/google/tink/archive/master.zip"],
22#     strip_prefix = "tink-master/python",
23# )
24
25local_repository(
26    name = "tink_cc",
27    path = "../../cc",
28)
29# http_archive(
30#     name = "tink_cc",
31#     urls = ["https://github.com/google/tink/archive/master.zip"],
32#     strip_prefix = "tink-master/cc",
33# )
34
35# Load Tink dependencies.
36
37load("@tink_py//:tink_py_deps.bzl", "tink_py_deps")
38
39tink_py_deps()
40
41load("@tink_py//:tink_py_deps_init.bzl", "tink_py_deps_init")
42
43tink_py_deps_init("tink_py")
44
45load("@tink_cc//:tink_cc_deps.bzl", "tink_cc_deps")
46
47tink_cc_deps()
48
49load("@tink_cc//:tink_cc_deps_init.bzl", "tink_cc_deps_init")
50
51tink_cc_deps_init()
52
53load("@rules_python//python:pip.bzl", "pip_install")
54
55pip_install(
56    name = "pip_deps",
57    quiet = False,
58    requirements = "@examples_python//:requirements.txt",
59)
60