2019-01-08 12:51:36 +00:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "six_archive",
|
|
|
|
urls = [
|
2019-01-11 08:05:07 +00:00
|
|
|
"https://mirror.bazel.build/pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz",
|
2019-01-08 12:51:36 +00:00
|
|
|
"https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz",
|
|
|
|
],
|
|
|
|
sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
|
|
|
|
strip_prefix = "six-1.10.0",
|
|
|
|
build_file = "@//third_party:six.BUILD",
|
|
|
|
)
|
|
|
|
|
|
|
|
bind(
|
|
|
|
name = "six",
|
|
|
|
actual = "@six_archive//:six",
|
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "com_google_protobuf",
|
2019-03-25 08:00:07 +00:00
|
|
|
sha256 = "3e933375ecc58d01e52705479b82f155aea2d02cc55d833f8773213e74f88363",
|
|
|
|
strip_prefix = "protobuf-3.7.0",
|
2019-01-09 08:47:45 +00:00
|
|
|
urls = [
|
2019-03-25 08:00:07 +00:00
|
|
|
"https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/protobuf-all-3.7.0.tar.gz",
|
|
|
|
"https://github.com/protocolbuffers/protobuf/releases/download/v3.7.0/protobuf-all-3.7.0.tar.gz",
|
2019-01-09 08:47:45 +00:00
|
|
|
],
|
2019-01-08 12:51:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "io_abseil_py",
|
|
|
|
sha256 = "74a2203a9b4681851f4f1dfc17f2832e0a16bae0369b288b18b431cea63f0ee9",
|
|
|
|
strip_prefix = "abseil-py-pypi-v0.6.1",
|
2019-01-09 08:47:45 +00:00
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/github.com/abseil/abseil-py/archive/pypi-v0.6.1.zip",
|
|
|
|
"https://github.com/abseil/abseil-py/archive/pypi-v0.6.1.zip",
|
|
|
|
],
|
2019-01-08 12:51:36 +00:00
|
|
|
)
|
2019-01-08 15:32:05 +00:00
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "py_mock",
|
|
|
|
sha256 = "b839dd2d9c117c701430c149956918a423a9863b48b09c90e30a6013e7d2f44f",
|
2019-01-09 08:47:45 +00:00
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/pypi.python.org/packages/source/m/mock/mock-1.0.1.tar.gz",
|
|
|
|
"https://pypi.python.org/packages/source/m/mock/mock-1.0.1.tar.gz",
|
|
|
|
],
|
2019-01-08 15:32:05 +00:00
|
|
|
strip_prefix = "mock-1.0.1",
|
|
|
|
patch_cmds = [
|
|
|
|
"mkdir -p py/mock",
|
|
|
|
"mv mock.py py/mock/__init__.py",
|
|
|
|
"""echo 'licenses(["notice"])' > BUILD""",
|
|
|
|
"touch py/BUILD",
|
|
|
|
"""echo 'py_library(name = "mock", srcs = ["__init__.py"], visibility = ["//visibility:public"],)' > py/mock/BUILD""",
|
|
|
|
],
|
|
|
|
)
|
2019-01-24 22:54:21 +00:00
|
|
|
|
2019-03-25 08:00:07 +00:00
|
|
|
# TODO(https://github.com/protocolbuffers/protobuf/issues/5918: Remove when protobuf releases protobuf_deps.bzl)
|
|
|
|
http_archive(
|
|
|
|
name = "net_zlib",
|
|
|
|
build_file = "@com_google_protobuf//examples:third_party/zlib.BUILD",
|
|
|
|
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
|
|
|
|
strip_prefix = "zlib-1.2.11",
|
|
|
|
urls = ["https://zlib.net/zlib-1.2.11.tar.gz"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bind(
|
|
|
|
name = "zlib",
|
|
|
|
actual = "@net_zlib//:zlib"
|
|
|
|
)
|
|
|
|
|
2019-01-24 22:54:21 +00:00
|
|
|
# Go rules and proto support
|
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_go",
|
|
|
|
urls = [
|
2019-06-12 17:23:28 +00:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz",
|
2019-01-24 22:54:21 +00:00
|
|
|
],
|
2019-06-12 17:23:28 +00:00
|
|
|
sha256 = "f04d2373bcaf8aa09bccb08a98a57e721306c8f6043a2a0ee610fd6853dcde3d",
|
2019-01-24 22:54:21 +00:00
|
|
|
)
|
2019-03-25 15:38:55 +00:00
|
|
|
|
|
|
|
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
|
2019-01-24 22:54:21 +00:00
|
|
|
go_rules_dependencies()
|
|
|
|
go_register_toolchains()
|
2019-03-28 07:52:04 +00:00
|
|
|
|
|
|
|
load("//cc:deps.bzl", "rules_cc_deps")
|
|
|
|
rules_cc_deps()
|