py-breathe: add new version and improve version constraints (#31857)

* py-breathe: add new version and improve version constraints

* py-breathe: everyone loves versions

```
py-breathe, py-breathe in the air
don't be afraid to care
````

* Update var/spack/repos/builtin/packages/py-breathe/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* add comment

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Seth R. Johnson 2022-08-31 13:23:19 -04:00 committed by GitHub
parent 62e4177e44
commit 08261af4ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@ class PyBreathe(PythonPackage):
homepage = "https://github.com/michaeljones/breathe"
url = "https://github.com/michaeljones/breathe/archive/v4.11.1.tar.gz"
version("4.34.0", sha256="b22e70eb4000492508d687d71f258c8f9678398e277bcee0daf34cd438a46e25")
version("4.33.1", sha256="acda75b216b227ec09ffd74378a6c7ed8f023df4539693c6e20574d1df52e75b")
version("4.21.0", sha256="7f97756a1b7f7998377b1153a976bf0d2879bb3ca1cb7bc846f455d37ca87ead")
version("4.11.1", sha256="84723eefc7cc05da6895e2dd6e7c72926c5fd88a67de57edce42d99c058c7e06")
@ -32,12 +33,15 @@ class PyBreathe(PythonPackage):
depends_on("python@3.6:", type=("build", "run"), when="@4.33:")
depends_on("py-docutils@0.5:", type=("build", "run"), when="@:4.20")
depends_on("py-docutils@0.12:", type=("build", "run"), when="@4.21:")
# Note: Pygments is missing from the setup.py in 4.34.0 but is listed in
# the requirements file and used by breathe.filetypes.
depends_on("py-pygments@1.6:", type=("build", "run"), when="@4.21:")
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:", type=("build", "run"), when="@4.33:")
depends_on("py-sphinx@3:4", type=("build", "run"), when="@4.33")
depends_on("py-sphinx@4,5.0.1:5", type=("build", "run"), when="@4.34:")
depends_on("doxygen@1.8.4:", type="run")