summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJen Herting <jen@herting.cc>2021-05-03 16:42:40 -0400
committerGitHub <noreply@github.com>2021-05-03 20:42:40 +0000
commitc4c090ab65e5bbacb1834ccbfeb9d67006d76508 (patch)
treeaf39197b9a9234dbd0539fd8cfba89715b38ac34
parent435ecce2f58f24bfbafbced0016b07e3dc5e40cd (diff)
downloadspack-c4c090ab65e5bbacb1834ccbfeb9d67006d76508.tar.gz
spack-c4c090ab65e5bbacb1834ccbfeb9d67006d76508.tar.bz2
spack-c4c090ab65e5bbacb1834ccbfeb9d67006d76508.tar.xz
spack-c4c090ab65e5bbacb1834ccbfeb9d67006d76508.zip
[py-fsspec] added http variant (#23404)
* [py-fsspec] added http variant * [py-fsspec] added conflict to enforce newer version for +http
-rw-r--r--var/spack/repos/builtin/packages/py-fsspec/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-fsspec/package.py b/var/spack/repos/builtin/packages/py-fsspec/package.py
index bab02b7a65..e52ee16a0d 100644
--- a/var/spack/repos/builtin/packages/py-fsspec/package.py
+++ b/var/spack/repos/builtin/packages/py-fsspec/package.py
@@ -17,6 +17,12 @@ class PyFsspec(PythonPackage):
version('0.7.3', sha256='1b540552c93b47e83c568e87507d6e02993e6d1b30bc7285f2336c81c5014103')
version('0.4.4', sha256='97697a46e8bf8be34461c2520d6fc4bfca0ed749b22bb2b7c21939fd450a7d63')
+ variant('http', default=False, description='HTTPFileSystem support (Requires version 0.8.1+)')
+
+ conflicts('+http', when='@:0.8.0', msg='Only available in 0.8.1+')
+
depends_on('python@3.5:', type=('build', 'run'))
depends_on('python@3.6:', type=('build', 'run'), when='@0.6.3:')
depends_on('py-setuptools', type='build')
+ depends_on('py-requests', type=('build', 'run'), when='+http')
+ depends_on('py-aiohttp', type=('build', 'run'), when='+http')