From 2ec17288f3c8e53ae9ddb2ba474ab1a89bac7c31 Mon Sep 17 00:00:00 2001
From: "Seth R. Johnson" <johnsonsr@ornl.gov>
Date: Mon, 1 Aug 2022 10:58:54 -0400
Subject: py-breathe: fix version constraints to avoid concretizing old breathe
 (#31828)

---
 var/spack/repos/builtin/packages/py-breathe/package.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/var/spack/repos/builtin/packages/py-breathe/package.py b/var/spack/repos/builtin/packages/py-breathe/package.py
index c45e82db43..9053b7d4d5 100644
--- a/var/spack/repos/builtin/packages/py-breathe/package.py
+++ b/var/spack/repos/builtin/packages/py-breathe/package.py
@@ -36,7 +36,8 @@ class PyBreathe(PythonPackage):
     depends_on("py-six@1.4:", type=("build", "run"), when="@:4.20")
     depends_on("py-six@1.9:", type=("build", "run"), when="@4.21:4.32")
     depends_on("py-sphinx", type=("build", "run"))
+    depends_on("py-sphinx@:3", type=("build", "run"), when="@:4.20")
     depends_on("py-sphinx@3:3.2", type=("build", "run"), when="@4.21:4.32")
-    depends_on("py-sphinx@3:4", type=("build", "run"), when="@4.33:")
+    depends_on("py-sphinx@3:", type=("build", "run"), when="@4.33:")
 
     depends_on("doxygen@1.8.4:", type="run")
-- 
cgit v1.2.3-70-g09d2