-
Notifications
You must be signed in to change notification settings - Fork 171
/
workspace.bzl
61 lines (57 loc) · 2.77 KB
/
workspace.bzl
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
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@io_bazel_rules_closure//closure:defs.bzl", "filegroup_external")
def wit_workspace():
# We use `mock==1.0.0` because later versions depend on `pbr`, which
# doesn't work well in a hermetic context (it tries to look up some
# global configuration files; see GitHub pull request #2132).
#
# This dependency can go away entirely once we drop Python 2 support
# and can just depend on `unittest.mock`.
http_archive(
name = "org_pythonhosted_mock",
urls = [
"http://mirror.tensorflow.org/files.pythonhosted.org/packages/85/60/ec8c1af81337bab0caba188b218b6758bc94f125f49062f7c5f0647749d2/mock-1.0.0.tar.gz",
"https://files.pythonhosted.org/packages/85/60/ec8c1af81337bab0caba188b218b6758bc94f125f49062f7c5f0647749d2/mock-1.0.0.tar.gz",
],
sha256 = "2d9fbe67001d2e8f02692075257f3c11e1b0194bd838c8ce3f49b31fc6c3f033",
strip_prefix = "mock-1.0.0",
build_file = str(Label("//third_party:mock.BUILD")),
patches = [
# `mock==1.0.0` lacks some assertion methods present in
# later versions of `mock` (see comment above for why we pin
# to this version). Patch created by diffing the pinned
# `mock.py` with GitHub head and identifying all the bits
# that looked related to the methods in question.
"//third_party:mock_call_assertions.patch",
],
)
http_archive(
name = "org_pythonhosted_six",
urls = [
"http://mirror.tensorflow.org/pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz",
"http://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz",
],
sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
strip_prefix = "six-1.10.0",
build_file = str(Label("//third_party:six.BUILD")),
)
filegroup_external(
name = "org_tf_tfjs",
licenses = ["notice"], # Apache 2.0
sha256_urls = {
"3870fc1d4eaefce7370b5bce3992e4dadcad8e3a5999b034302e38b2094873ea": [
"http://mirror.tensorflow.org/cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js",
"https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js",
],
},
)
filegroup_external(
name = "org_tf_tfjs_mobilenet",
licenses = ["notice"], # Apache 2.0
sha256_urls = {
"aca32ec8a778d17acb623bf495c6e60ec38312b761b9a8c88af4c841c25eba70": [
"http://mirror.tensorflow.org/cdn.jsdelivr.net/npm/@tensorflow-models/[email protected]/dist/mobilenet.js",
"https://cdn.jsdelivr.net/npm/@tensorflow-models/[email protected]/dist/mobilenet.js",
],
},
)