summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-responses/package.py
blob: 51b0f0b8e51544616ed9f8e2df276a516092801c (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
25
# 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 PyResponses(PythonPackage):
    """A utility library for mocking out the `requests` Python library."""

    homepage = "https://github.com/getsentry/responses"
    pypi     = "responses/responses-0.13.3.tar.gz"

    maintainers = ['dorton21']

    version('0.13.3', sha256='18a5b88eb24143adbf2b4100f328a2f5bfa72fbdacf12d97d41f07c26c45553d')

    depends_on('python@2.7:2.8,3.5:', type=('build', 'run'))
    depends_on('py-setuptools', type='build')
    depends_on('py-mock', when='^python@:3.2', type=('build', 'run'))
    depends_on('py-cookies', when='^python@:3.3', type=('build', 'run'))
    depends_on('py-requests@2.0:', type=('build', 'run'))
    depends_on('py-urllib3@1.25.10:', type=('build', 'run'))
    depends_on('py-six', type=('build', 'run'))