diff --git a/var/spack/repos/builtin/packages/py-rich/package.py b/var/spack/repos/builtin/packages/py-rich/package.py index 860312bf70a..15cef22b260 100644 --- a/var/spack/repos/builtin/packages/py-rich/package.py +++ b/var/spack/repos/builtin/packages/py-rich/package.py @@ -29,7 +29,7 @@ class PyRich(PythonPackage): depends_on('python@3.6:', type=('build', 'run')) depends_on('py-setuptools', type='build') depends_on('py-typing-extensions@3.7.4:3.99', type=('build', 'run')) - depends_on('py-dataclasses@0.7:0.8', when='python@3.6', type=('build', 'run')) + depends_on('py-dataclasses@0.7:0.8', when='python@:3.6', type=('build', 'run')) depends_on('py-pygments@2.6:2.99', type=('build', 'run')) depends_on('py-commonmark@0.9:0.99', type=('build', 'run')) depends_on('py-colorama@0.4:0.99', type=('build', 'run'))