xref: /aosp_15_r20/external/tink/python/tink_py_deps.bzl (revision e7b1675dde1b92d52ec075b0a92829627f2c52a5)
1"""tink-py dependencies."""
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
4
5def tink_py_deps():
6    """Loads dependencies of tink-py."""
7    if not native.existing_rule("google_root_pem"):
8        http_file(
9            name = "google_root_pem",
10            executable = 0,
11            urls = ["https://pki.goog/roots.pem"],
12            sha256 = "9c9b9685ad319b9747c3fe69b46a61c11a0efabdfa09ca6a8b0c3da421036d27",
13        )
14
15    if not native.existing_rule("rules_python"):
16        # Release from 2022-07-15
17        http_archive(
18            name = "rules_python",
19            sha256 = "a3a6e99f497be089f81ec082882e40246bfd435f52f4e82f37e89449b04573f6",
20            strip_prefix = "rules_python-0.10.2",
21            url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.10.2.tar.gz",
22        )
23
24    if not native.existing_rule("pybind11"):
25        # Commit from 2021-12-28
26        http_archive(
27            name = "pybind11",
28            build_file = "@pybind11_bazel//:pybind11.BUILD",
29            strip_prefix = "pybind11-2.9.0",
30            urls = ["https://github.com/pybind/pybind11/archive/v2.9.0.tar.gz"],
31            sha256 = "057fb68dafd972bc13afb855f3b0d8cf0fa1a78ef053e815d9af79be7ff567cb",
32        )
33
34    if not native.existing_rule("pybind11_bazel"):
35        # Commit from 2021-01-05
36        http_archive(
37            name = "pybind11_bazel",
38            strip_prefix = "pybind11_bazel-72cbbf1fbc830e487e3012862b7b720001b70672",
39            url = "https://github.com/pybind/pybind11_bazel/archive/72cbbf1fbc830e487e3012862b7b720001b70672.zip",
40            sha256 = "fec6281e4109115c5157ca720b8fe20c8f655f773172290b03f57353c11869c2",
41        )
42