From fe688f08fcc64885a059d770dd56bcab494e809d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Eric=20M=C3=BCller?= <mueller@kip.uni-heidelberg.de>
Date: Mon, 20 Nov 2023 15:08:42 +0100
Subject: [PATCH] fix(py-ray): constrain to older bazel
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

I just hit https://github.com/ray-project/ray/issues/31504 when trying to build
ebrains on a unconstrained spack (0.20.x) → bazel 6.1.1 is too new for py-ray.
---
 packages/py-ray/package.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/py-ray/package.py b/packages/py-ray/package.py
index 55bdd87d..da6ae703 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:5", 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")
-- 
GitLab