diff --git a/packages/py-ray/package.py b/packages/py-ray/package.py
index a7b07f6f190aac6e9e87162741d33ff1a578c349..d17b5557ec416d5c6bacbba99e2f76cc80008c85 100644
--- a/packages/py-ray/package.py
+++ b/packages/py-ray/package.py
@@ -20,7 +20,7 @@ class PyRay(PythonPackage):
 
     depends_on("python@3.6:3.10", when="@2.0.1", type=("build", "run"))
     depends_on("python@3.6:3.8", when="@0.8.7", type=("build", "run"))
-    depends_on("bazel@4.2.2", when="@2.0.1", type="build")
+    depends_on("bazel@4.2.2:", when="@2.0.1", type="build")
     depends_on("bazel@3.2.0", when="@0.8.7", type="build")
     depends_on("npm", type="build")
     depends_on("py-setuptools", type="build")