File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,33 @@ py_library(
34
34
srcs = glob(["importlib_metadata/*.py"]),
35
35
imports = ["."],
36
36
deps = [
37
+ "@{name}//typing_extensions",
37
38
"@{name}//zipp",
38
39
],
39
40
)
40
41
""" .format (
41
42
name = rctx .name ,
42
43
))
43
44
45
+ rctx .download_and_extract (
46
+ output = "typing_extensions" ,
47
+ sha256 = "c8fd5561e1bd88b743ef2ee065a5e661b2fd7b56e9cbe9ae2aeb928f41438819" ,
48
+ stripPrefix = "typing_extensions-4.5.0/src" ,
49
+ url = "https://github.com/python/typing_extensions/archive/refs/tags/4.5.0.tar.gz" ,
50
+ )
51
+
52
+ rctx .file ("typing_extensions/BUILD.bazel" , """
53
+ package(default_visibility = ["//visibility:public"])
54
+
55
+ py_library(
56
+ name = "typing_extensions",
57
+ srcs = [
58
+ "typing_extensions.py",
59
+ ],
60
+ imports = ["."],
61
+ )
62
+ """ )
63
+
44
64
rctx .download_and_extract (
45
65
output = "zipp" ,
46
66
sha256 = "a2e6a09c22d6d36221e2d37f08d9566554f4de9e6e3ed8eb9ddcc0b0440162c0" ,
You can’t perform that action at this time.
0 commit comments