diff --git a/var/spack/repos/builtin/packages/py-smart-open/package.py b/var/spack/repos/builtin/packages/py-smart-open/package.py index fd2ed92ef2..f58683af38 100644 --- a/var/spack/repos/builtin/packages/py-smart-open/package.py +++ b/var/spack/repos/builtin/packages/py-smart-open/package.py @@ -21,5 +21,6 @@ class PySmartOpen(PythonPackage): depends_on('py-setuptools', type='build') depends_on('py-requests', type=('build', 'run')) depends_on('py-boto3', type=('build', 'run')) - depends_on('py-google-cloud-storage', type=('build', 'run')) + depends_on('py-boto@2.3.2:', when='@1.8.4', type=('build', 'run')) + depends_on('py-google-cloud-storage', when='@1.10:', type=('build', 'run')) depends_on('py-bz2file', when='^python@:2', type=('build', 'run'))