diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/py-cachecontrol/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-cachecontrol/package.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-cachecontrol/package.py b/var/spack/repos/builtin/packages/py-cachecontrol/package.py new file mode 100644 index 0000000000..12fbc54102 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-cachecontrol/package.py @@ -0,0 +1,24 @@ +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class PyCachecontrol(PythonPackage): + """CacheControl is a port of the caching algorithms in httplib2 + for use with requests session object.""" + + homepage = "https://github.com/ionrock/cachecontrol" + pypi = "CacheControl/CacheControl-0.12.10.tar.gz" + + version('0.12.10', sha256='d8aca75b82eec92d84b5d6eb8c8f66ea16f09d2adb09dbca27fe2d5fc8d3732d') + + variant('filecache', default=False, description='Add lockfile dependency') + + depends_on('python@3.6:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-requests', type=('build', 'run')) + depends_on('py-msgpack@0.5.2:', type=('build', 'run')) + depends_on('py-lockfile@0.9:', when='+filecache', type='run') |