diff --git a/var/spack/repos/builtin/packages/py-pyside/package.py b/var/spack/repos/builtin/packages/py-pyside/package.py index 4e267c781d..9e14889cf5 100644 --- a/var/spack/repos/builtin/packages/py-pyside/package.py +++ b/var/spack/repos/builtin/packages/py-pyside/package.py @@ -29,7 +29,8 @@ class PyPyside(PythonPackage): depends_on('cmake', type='build') depends_on('py-setuptools', type='build') - depends_on('py-sphinx', type=('build', 'run')) + depends_on('py-sphinx', type=('build', 'run')) + depends_on('py-sphinx@:3.5.0', type=('build', 'run'), when='@:1.2.2') depends_on('qt@4.5:4.9') depends_on('libxml2@2.6.32:') depends_on('libxslt@1.1.19:')