py-jinja2: add conflict for py-markupsafe@2.0.2 (#38913)

* py-jinja2: add conflict for py-markupsafe@2.0.2

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

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

---------

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Manuela Kuhn 2023-07-16 01:05:15 +02:00 committed by GitHub
parent 319ef0f459
commit 5e7f989019
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,3 +39,6 @@ class PyJinja2(PythonPackage):
depends_on("py-markupsafe@0.23:", type=("build", "run")) depends_on("py-markupsafe@0.23:", type=("build", "run"))
depends_on("py-babel@2.7:", when="@3:+i18n", type=("build", "run")) depends_on("py-babel@2.7:", when="@3:+i18n", type=("build", "run"))
depends_on("py-babel@0.8:", when="+i18n", type=("build", "run")) depends_on("py-babel@0.8:", when="+i18n", type=("build", "run"))
# https://github.com/pallets/jinja/issues/1585
conflicts("^py-markupsafe@2.1:", when="@:2")