# Copyright 2013-2022 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.package 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')