22 lines
891 B (Stored with Git LFS)
Python
22 lines
891 B (Stored with Git LFS)
Python
"""Loads a lightweight subset of the ICU library for Unicode processing."""
|
|
|
|
load("//third_party:repo.bzl", "third_party_http_archive")
|
|
|
|
# Sanitize a dependency so that it works correctly from code that includes
|
|
# TensorFlow as a submodule.
|
|
def clean_dep(dep):
|
|
return str(Label(dep))
|
|
|
|
def repo():
|
|
third_party_http_archive(
|
|
name = "icu",
|
|
strip_prefix = "icu-release-64-2",
|
|
sha256 = "dfc62618aa4bd3ca14a3df548cd65fe393155edd213e49c39f3a30ccd618fc27",
|
|
urls = [
|
|
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/unicode-org/icu/archive/release-64-2.zip",
|
|
"https://github.com/unicode-org/icu/archive/release-64-2.zip",
|
|
],
|
|
build_file = "//third_party/icu:BUILD.bazel",
|
|
system_build_file = "//third_party/icu:BUILD.system",
|
|
patch_file = clean_dep("//third_party/icu:udata.patch"),
|
|
)
|