forked from google/arolla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE.bzlmod
102 lines (92 loc) · 3.55 KB
/
WORKSPACE.bzlmod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# This replaces the content of the WORKSPACE file when using --enable_bzlmod.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository",
"new_git_repository")
git_repository(
name = "com_google_double_conversion",
remote = "https://github.com/google/double-conversion",
tag = "v3.3.0",
)
new_git_repository(
name = "com_google_cityhash",
commit = "00b9287e8c1255b5922ef90e304d5287361b2c2a",
shallow_since = "1317934590 +0000",
remote = "https://github.com/google/cityhash",
build_file = "BUILD.cityhash",
patches = [
# Apply patches to add a "cityhash" namespace to the functions.
"cityhash.1.patch",
"cityhash.2.patch",
"cityhash.3.patch",
],
patch_cmds = [
# Running "configure" creates the config.h file needed for this library.
# Then, the source files are moved to a new "cityhash" directory for
# consistency with the namespace.
"./configure",
"mkdir cityhash",
"mv config.h cityhash",
"mv src/city.h cityhash",
"mv src/citycrc.h cityhash",
"mv src/city.cc cityhash",
],
)
_RULES_BOOST_COMMIT = "789a047e61c0292c3b989514f5ca18a9945b0029"
http_archive(
name = "com_github_nelhage_rules_boost",
sha256 = "c1298755d1e5f458a45c410c56fb7a8d2e44586413ef6e2d48dd83cc2eaf6a98",
strip_prefix = "rules_boost-%s" % _RULES_BOOST_COMMIT,
urls = [
"https://github.com/nelhage/rules_boost/archive/%s.tar.gz" % _RULES_BOOST_COMMIT,
],
)
load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps")
boost_deps()
http_archive(
name = "jinja_archive",
build_file_content = """py_library(
name = "jinja2",
visibility = ["//visibility:public"],
srcs = glob(["jinja2/*.py"]),
deps = ["@markupsafe//:markupsafe"],
)""",
sha256 = "93187ffbc7808079673ef52771baa950426fd664d3aad1d0fa3e95644360e250",
strip_prefix = "Jinja2-2.11.1/src",
urls = [
"http://mirror.bazel.build/files.pythonhosted.org/packages/d8/03/e491f423379ea14bb3a02a5238507f7d446de639b623187bccc111fbecdf/Jinja2-2.11.1.tar.gz",
"https://files.pythonhosted.org/packages/d8/03/e491f423379ea14bb3a02a5238507f7d446de639b623187bccc111fbecdf/Jinja2-2.11.1.tar.gz", # 2020-01-30
],
)
# Jinja2 depends on MarkupSafe
http_archive(
name = "markupsafe",
build_file_content = """py_library(
name = "markupsafe",
visibility = ["//visibility:public"],
srcs = glob(["*.py"])
)""",
sha256 = "29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b",
strip_prefix = "MarkupSafe-1.1.1/src/markupsafe",
urls = [
"http://mirror.bazel.build/files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz",
"https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz", # 2019-02-24
],
)
new_git_repository(
name = "pypa_typing_extensions",
tag = "4.8.0",
remote = "https://github.com/python/typing_extensions",
build_file = "BUILD.pypa_typing_extensions",
)
# ICU (International Components for Unicode)
new_git_repository(
name = "icu4c",
commit = "0e7b4428866f3133b4abba2d932ee3faa708db1d",
shallow_since = "1617821262 -0500",
# tag = "release-69-1",
remote = "https://github.com/unicode-org/icu",
build_file = "BUILD.icu4c",
patch_cmds = [
"""LC_ALL=C find . -type f -exec sed -i.bak 's@#[[:space:]]*include "unicode@#include "icu4c/source/common/unicode@g' {} +""",
],
)