-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbazel_toolbox_repositories.bzl
60 lines (50 loc) · 1.46 KB
/
bazel_toolbox_repositories.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
# Copyright (c) 2017-2018 Dustin Doloff
# Licensed under Apache License v2.0
load("@bazel_repository_toolbox//:github_repository.bzl", "github_repository", "new_github_repository")
load("@rules_jvm_external//:defs.bzl", "maven_install")
_JINJA_BUILD_FILE = """
py_library(
name = "jinja",
srcs = glob([ "jinja2/*.py" ]),
deps = [
"@markup_safe//:markup_safe",
],
visibility = [ "//visibility:public" ],
)
"""
_MARKUP_SAFE_BUILD_FILE = """
py_library(
name = "markup_safe",
srcs = glob([ "markupsafe/*.py" ]),
visibility = [ "//visibility:public" ],
)
"""
def bazel_toolbox_repositories():
"""
Adds all the necessary repositories to the workspace.
"""
new_github_repository(
name = "jinja",
user = "pallets",
project = "jinja",
tag = "2.10.3",
sha256 = "db49236731373e4f3118af880eb91bb0aa6978bc0cf8b35760f6a026f1a9ffc4",
build_file_content = _JINJA_BUILD_FILE,
)
new_github_repository(
name = "markup_safe",
user = "pallets",
project = "markupsafe",
tag = "1.1.1",
sha256 = "222a10e3237d92a9cd45ed5ea882626bc72bc5e0264d3ed0f2c9129fa69fc167",
build_file_content = _MARKUP_SAFE_BUILD_FILE,
)
maven_install(
artifacts = [
"commons-cli:commons-cli:1.4",
"commons-io:commons-io:2.6",
],
repositories = [
"https://repo1.maven.org/maven2",
],
)