summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-cachecontrol/package.py
blob: e8dac62b0086f8606a7c8e12c7a3499568030950 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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 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')