From 96f5075eb1458609852785a0b77ff9da4affda68 Mon Sep 17 00:00:00 2001
From: Jen Herting <jen@herting.cc>
Date: Tue, 4 Aug 2020 19:44:30 -0400
Subject: [PATCH] [py-smart-open] fixing dependencies (#17640)

* version 1.8.4 requires py-boto at 2.3.2:
* google-cloud-storage only in newer versions
---
 var/spack/repos/builtin/packages/py-smart-open/package.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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'))
-- 
GitLab