github.com/johnnyeven/libtools@v0.0.0-20191126065708-61829c1adf46/third_party/icu/workspace.bzl (about) 1 """Loads a lightweight subset of the ICU library for Unicode processing.""" 2 3 load("//third_party:repo.bzl", "third_party_http_archive") 4 5 # Sanitize a dependency so that it works correctly from code that includes 6 # TensorFlow as a submodule. 7 def clean_dep(dep): 8 return str(Label(dep)) 9 10 def repo(): 11 third_party_http_archive( 12 name = "icu", 13 strip_prefix = "icu-release-62-1", 14 sha256 = "e15ffd84606323cbad5515bf9ecdf8061cc3bf80fb883b9e6aa162e485aa9761", 15 urls = [ 16 "https://storage.googleapis.com/mirror.tensorflow.org/github.com/unicode-org/icu/archive/release-62-1.tar.gz", 17 "https://github.com/unicode-org/icu/archive/release-62-1.tar.gz", 18 ], 19 build_file = "//third_party/icu:BUILD.bazel", 20 system_build_file = "//third_party/icu:BUILD.system", 21 patch_file = clean_dep("//third_party/icu:udata.patch"), 22 )